]> Cypherpunks repositories - gostls13.git/commit
cmd/link: introduce a rel.ro segment
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 6 Sep 2016 03:29:16 +0000 (23:29 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Sun, 11 Sep 2016 20:10:47 +0000 (20:10 +0000)
commit276803d6111b46c66956c99d982d70f23820ba5d
tree17d3d02d0357b0a56cfef1670e384b9e9a8bee3c
parent13dc4d378bb40261fb2e7f9e1f0eb2f840250040
cmd/link: introduce a rel.ro segment

When internally linking with using rel.ro sections, this segment covers
the sections. To do this, move to other read-only sections, SELFROSECT
and SMACHOPLT, out of the way.

Part of adding PIE internal linking on linux/amd64.

Change-Id: I4fb3d180e92f7e801789ab89864010faf5a2cb6d
Reviewed-on: https://go-review.googlesource.com/28538
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/obj/link.go
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/arm/asm.go
src/cmd/link/internal/arm64/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/mips64/asm.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/s390x/asm.go
src/cmd/link/internal/x86/asm.go