]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ppc64: generate PCrel trampolines on P10
authorPaul E. Murphy <murp@ibm.com>
Tue, 10 Jan 2023 21:14:46 +0000 (15:14 -0600)
committerPaul Murphy <murp@ibm.com>
Fri, 7 Apr 2023 13:56:57 +0000 (13:56 +0000)
commita3df6c0e81cd14aef0b4967721821d34b962b7be
tree737d78da9929b9fde0cf972faa03b5950dc1f542
parent949fdd9f0dc53c32dc6a5a46ad7a85032df28055
cmd/link/internal/ppc64: generate PCrel trampolines on P10

PCrelative trampolines have no dependence on the TOC pointer or build
mode, thus they are preferable to use when supported.

This is a step towards eliminating the need to use and maintain the
TOC pointer in R2 when PCrel is supported.

Change-Id: I1b1a7e16831cfd6732b31f7fad8df2a7c88c8f84
Reviewed-on: https://go-review.googlesource.com/c/go/+/461599
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
src/cmd/link/internal/ppc64/asm.go