]> Cypherpunks repositories - gostls13.git/commit
cmd/link: don't use trampolines in ppc64le ext linking
authorLynn Boger <laboger@linux.vnet.ibm.com>
Fri, 4 Nov 2016 19:53:59 +0000 (14:53 -0500)
committerDavid Chase <drchase@google.com>
Mon, 7 Nov 2016 15:03:24 +0000 (15:03 +0000)
commitec77b8e09cace7338ebc39faadd599e5cb676295
treec00cd91026558fa4452ef1563126c97f7f000c88
parent3df059ece5d4c575abdf61b4b955f0ba292e5168
cmd/link: don't use trampolines in ppc64le ext linking

On ppc64x, trampolines are used to resolve too-far
branches for internal linking.  The external linking,
solution on ppc64x is to split text sections when they
get too large, allowing the external linker to handle
the long branches.

On arm trampolines are generanted for too-far branches
for internal and external linking.  When the change
was made recently to enable trampolines for external linking
on arm, that broke the ppc64x fix for too-far branches
with external linking.

The fix adds a check to use trampolines only for internal
linking with ppc64x.

Fixes #17795

Change-Id: Icce968fb96545f10a913e07654514643bce96261
Reviewed-on: https://go-review.googlesource.com/32853
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/link/internal/ld/data.go