]> Cypherpunks repositories - gostls13.git/commit
cmd/link: make TestTypePlacement work on AIX
authorIan Lance Taylor <iant@golang.org>
Sat, 31 Jan 2026 03:15:31 +0000 (19:15 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 6 Feb 2026 23:30:44 +0000 (15:30 -0800)
commitad170e18540be19bd6db012ff221c01e8c9745e9
tree5c4ea7725903a76d07199285c1e7e517b0a73e5e
parent9fd5a5fa7d9d629ded8d4685dcc5984268258edb
cmd/link: make TestTypePlacement work on AIX

The existing code was just wrong. On AIX the go.type section is
folded into the .text section (when internally linking),
or the .data section (when externally linking).
It follows that the data section adjustment is useless when
internally linking, which is currently what happens with this test.

Change-Id: Icf8ac07f754fdcf08b9d3dfffde83b3391c9404b
Reviewed-on: https://go-review.googlesource.com/c/go/+/740821
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/link/link_test.go