]> Cypherpunks repositories - gostls13.git/commit
cmd/link: keep go.buildid alive on AIX external linking
authorCherry Mui <cherryyz@google.com>
Wed, 6 Oct 2021 16:39:41 +0000 (12:39 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 6 Oct 2021 17:38:01 +0000 (17:38 +0000)
commit415f0a33750a7cb4ad282fc5aa664d3fde244f84
tree90fd8abdc6266e8d35aaf8187c8a532a64b9dc0f
parent316057142cc6055952621ccbaccc53d58d88be3f
cmd/link: keep go.buildid alive on AIX external linking

As we use relative addressing for text symbols in functab, it is
important that the offsets we computed stay unchanged by the
external linker, i.e. all symbols in Textp should not be removed
by the external linker. Most of them are actually referenced (our
deadcode pass ensures that), except go.buildid which is generated
late and not used by the program. Keep it alive.

Should fix AIX builder.

Change-Id: Ibc4a8951be997b9d8d870d75c54754977d9b8333
Reviewed-on: https://go-review.googlesource.com/c/go/+/354369
Trust: Cherry Mui <cherryyz@google.com>
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/link/internal/ld/symtab.go