]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move XCOFF data addresses to an unreachable segment
authorClément Chigot <clement.chigot@atos.net>
Fri, 23 Nov 2018 14:12:04 +0000 (15:12 +0100)
committerIan Lance Taylor <iant@golang.org>
Mon, 17 Dec 2018 23:03:47 +0000 (23:03 +0000)
commit9a3c1a1bc8ec81925925d6699577ff7812be3d58
tree468be4676ffe80a89e9df952c6c8fef6f74d18c4
parentd924c3336c39a256c832512ecd24fcdeed0ca266
cmd/link: move XCOFF data addresses to an unreachable segment

This commit move data addresses to 0x200000000 for XCOFF executables.
.data and .bss must always be position-independent on AIX. This
modification allows to detect more easily if they aren't, as segfault
will be triggered.

Change-Id: Ied7a5b72b9f4ff9f870a1626cf07c48110635e62
Reviewed-on: https://go-review.googlesource.com/c/151040
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/xcoff.go