[go] cmd/link: enable external linking on ppc64/linux

0 views
Skip to first unread message

Paul Murphy (Gerrit)

unread,
May 13, 2026, 9:18:21 AM (3 days ago) May 13
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Dmitri Shuralyov, Dmitri Shuralyov, Jayanth Krishnamurthy, golang...@luci-project-accounts.iam.gserviceaccount.com, Keith Randall, Keith Randall, Archana Ravindar, Gopher Robot, Cherry Mui, golang-co...@googlegroups.com

Paul Murphy submitted the change

Unreviewed changes

18 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
all: turn on cgo/external linking for linux/ppc64

ppc64/linux has been switched to the ELFv2 abi, the same as
ppc64le/linux. Turn on cgo features and remove many of the
hacks which disabled external linking. There should be no
difference between ppc64le and ppc64 linux beyond endianness.

The ppc64x Go to ELF relocation code is cleaned up to simplify
and enable bi-endian support.
Cq-Include-Trybots: luci.golang.try:gotip-linux-ppc64_power10,gotip-linux-ppc64_power8,gotip-linux-ppc64le_power8,gotip-linux-ppc64le_power10,gotip-linux-ppc64le_power9,gotip-openbsd-ppc64
Change-Id: I8f553a8eae067f93ee395c219e20eabd4aeb67c3
Reviewed-by: Keith Randall <k...@google.com>
Reviewed-by: Keith Randall <k...@golang.org>
Reviewed-by: Archana Ravindar <arav...@redhat.com>
Reviewed-by: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
Files:
  • R src/cmd/cgo/internal/test/callstub_linux_ppc64x.go
  • R src/cmd/cgo/internal/test/linux_ppc64x_test.go
  • R src/cmd/cgo/internal/test/stubtest_linux_ppc64x.S
  • M src/cmd/compile/internal/noder/reader.go
  • M src/cmd/compile/internal/ssa/regalloc.go
  • M src/cmd/compile/internal/ssagen/abi.go
  • M src/cmd/dist/build.go
  • M src/cmd/dist/test.go
  • M src/cmd/link/internal/ld/config.go
  • M src/cmd/link/internal/ld/dwarf_test.go
  • M src/cmd/link/internal/ppc64/asm.go
  • M src/cmd/link/internal/ppc64/obj.go
  • M src/cmd/link/link_test.go
  • M src/internal/platform/supported.go
  • M src/internal/platform/zosarch.go
  • M src/runtime/asm_ppc64x.s
  • M src/runtime/cgo/gcc_sigaction.c
  • M src/runtime/cgo/sigaction.go
  • M src/runtime/cgo_sigaction.go
  • M src/runtime/crash_cgo_test.go
  • M src/runtime/debug_test.go
  • M src/runtime/debugcall.go
  • R src/runtime/export_debug_ppc64x_test.go
  • M src/runtime/export_debug_test.go
  • M src/runtime/sigaction.go
  • D src/runtime/stubs_ppc64.go
  • M src/runtime/sys_linux_ppc64x.s
Change size: M
Delta: 27 files changed, 106 insertions(+), 135 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I8f553a8eae067f93ee395c219e20eabd4aeb67c3
Gerrit-Change-Number: 770240
Gerrit-PatchSet: 20
Gerrit-Owner: Paul Murphy <paum...@redhat.com>
Gerrit-Reviewer: Archana Ravindar <arav...@redhat.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
Gerrit-Reviewer: Jayanth Krishnamurthy <jayanth.kr...@ibm.com>
Gerrit-Reviewer: Keith Randall <k...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@google.com>
Gerrit-Reviewer: Paul Murphy <paum...@redhat.com>
Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-CC: Gopher Robot <go...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages