]> Cypherpunks repositories - gostls13.git/commit
cmd/link: make ppc64le __glink_PLTresolve position-independent
authorPaul E. Murphy <murp@ibm.com>
Wed, 20 Oct 2021 18:40:54 +0000 (13:40 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Mon, 1 Nov 2021 13:08:16 +0000 (13:08 +0000)
commit732db407d30e9bd49d0907fd820207e6d646df9c
tree0d2641a5748161f72e121291bcfb62d7b3f042ef
parentfde4cc2a3189e2c964a0ce49de3cbe79ebedf985
cmd/link: make ppc64le __glink_PLTresolve position-independent

This code is only generated when linking cgo internally with fixed
position code. This feature of the internal linker is only supported
on ppc64le/linux targets. This moves ppc64le/linux a little closer
to supporting PIE when internal linking.

This is more similar to the implementation suggested in the power
architecture elfv2 supplement, and works with both PIE and static
code.

Change-Id: I0b64e1c22b9e07b5151378d2ab19ee0e50405fc5
Reviewed-on: https://go-review.googlesource.com/c/go/+/357332
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ppc64/asm.go