From 276cc4d3dbbf413be008113e6c88ffb3df2de4d6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 1 Dec 2025 16:25:56 -0800 Subject: 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 Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase --- src/cmd/nm/nm_test.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/cmd/nm') diff --git a/src/cmd/nm/nm_test.go b/src/cmd/nm/nm_test.go index f740a3f738..424ac72e22 100644 --- a/src/cmd/nm/nm_test.go +++ b/src/cmd/nm/nm_test.go @@ -118,11 +118,6 @@ func testGoExec(t *testing.T, iscgo, isexternallinker bool) { "runtime.noptrdata": "D", } - if runtime.GOOS == "aix" && iscgo { - // pclntab is moved to .data section on AIX. - runtimeSyms["runtime.epclntab"] = "D" - } - out, err = testenv.Command(t, testenv.Executable(t), exe).CombinedOutput() if err != nil { t.Fatalf("go tool nm: %v\n%s", err, string(out)) -- cgit v1.3