]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo/internal/test: test PPC64 ELFv2 call/plt stub generation
authorPaul E. Murphy <murp@ibm.com>
Wed, 17 May 2023 18:26:11 +0000 (13:26 -0500)
committerPaul Murphy <murp@ibm.com>
Fri, 22 Sep 2023 15:06:17 +0000 (15:06 +0000)
commitbf5d8c02bab68a8628956b953be8bf5928461fb6
tree0871ea7d72a4869cee3a0618c282390f2e32636c
parentc8caad423cafcca7c39dbaf64b428aaf0e8ac80c
cmd/cgo/internal/test: test PPC64 ELFv2 call/plt stub generation

Verify functional stubs are inserted between TOC and NOTOC functions.

The implementation of the stub varies depending on -buildmode and
GOPPC64. Today, the type of stub generated by the internal linker
is roughly determined by the following

{GOPPC64 < 10, GOPPC64 >= 10} x {-buildmode=pie, -buildmode=default}

Change-Id: Ib9b3eef252bfcd357a476134d3503cb996bc285b
Reviewed-on: https://go-review.googlesource.com/c/go/+/496916
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/cgo/internal/test/callstub_linux_ppc64le.go [new file with mode: 0644]
src/cmd/cgo/internal/test/linux_ppc64le_test.go [new file with mode: 0644]
src/cmd/cgo/internal/test/stubtest_linux_ppc64le.S [new file with mode: 0644]