Change information
Commit message:
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
Files:
- M src/cmd/link/internal/ld/pcln.go
- M src/cmd/link/internal/ld/symtab.go
- M src/cmd/link/internal/ld/xcoff.go
- M src/cmd/link/link_test.go
- M src/cmd/nm/nm_test.go
Change size: M
Delta: 5 files changed, 84 insertions(+), 63 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Cherry Mui, +1 by David Chase
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI