]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add trampolines for too far calls in ppc64x
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 11 Oct 2016 14:26:40 +0000 (09:26 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 17 Oct 2016 16:06:04 +0000 (16:06 +0000)
commitd26b0661c23dedc5c3e2c2ed2ca6250e440bf010
tree025a8b09977774cbd0d9945560283ff488759c21
parent0ce1d79a6a771f7449ec493b993ed2a720917870
cmd/link: add trampolines for too far calls in ppc64x

This change adds support for trampolines on ppc64x when using
internal linking, in the case where the offset to the branch
target is larger than what fits in the field provided by the
branch instruction.

Fixes #16665

Change-Id: Icfee72910f38c94588d2adce517b64dee6176145
Reviewed-on: https://go-review.googlesource.com/30850
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/ppc64/obj.go
src/cmd/link/linkbig_test.go