]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix AIX builds after recent linker changes
authorIan Lance Taylor <iant@golang.org>
Tue, 2 Dec 2025 00:25:56 +0000 (16:25 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 8 Dec 2025 22:37:09 +0000 (14:37 -0800)
commit276cc4d3dbbf413be008113e6c88ffb3df2de4d6
tree1ac431a28459e64b3766ff6e2326c2a11d27f3d2
parentf2d96272cb1b695dfddcd5b80dfed2ad2ee6db59
cmd/link: fix AIX builds after recent linker changes

This updates XCOFF-specific code for the recent addition
of funcdata to pclntab.

Because XCOFF puts separate symbols into separate csects,
each with their own alignment, it's important to tell the
external linker the expected alignment of each part of pclntab.
Otherwise the offsets within pclntab may change as the external
linker aligns symbols. This CL sets the correct alignment for
each pclntab child symbol, and sets pclntab's alignment to the
max of that of its children.

Tested on the GCC compile farm.

Fixes #76486

Change-Id: I77d8a90c4b4b79d80ca11ede8d9a2aa9cc89f53f
Reviewed-on: https://go-review.googlesource.com/c/go/+/725603
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/ld/xcoff.go
src/cmd/link/link_test.go
src/cmd/nm/nm_test.go