]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix coverage counter issue on AIX
authorThan McIntosh <thanm@google.com>
Tue, 27 Sep 2022 16:23:26 +0000 (12:23 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 27 Sep 2022 18:33:46 +0000 (18:33 +0000)
commitbf5805eae436a1ddbad593ec0671c9a7e8c67a9a
tree77eca0f14fb44280b8446f7193a1ffc86327afd7
parentf15b81a80fc7250b436e5866d0a73c60f7b47712
cmd/link: fix coverage counter issue on AIX

Update the linker's XCOFF writer to handle coverage counter sections
properly; they need to be treated as bss, not data. Fixes a problem
with the aix-ppc64 builder introduced in CL 401235), e.g.
"runtime.covctrs: A symbol with type XTY_SD must be in a .text or
.data section".

Updates #51430.

Change-Id: I3fc385a37e2549c46cc7cc3b4718af989a36752a
Reviewed-on: https://go-review.googlesource.com/c/go/+/435335
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/link/internal/ld/xcoff.go