]> Cypherpunks repositories - gostls13.git/commit
cmd/link: mark special symbols reachable
authorCherry Zhang <cherryyz@google.com>
Tue, 30 Jun 2020 22:41:24 +0000 (18:41 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 1 Jul 2020 14:41:27 +0000 (14:41 +0000)
commitd7553d9af916682e9f68d1a1aa585a12293ed1f8
tree88f96434a3379f4aba80a86703116457b22fcf2c
parent84152d57692fc21ad5ee4bcf8eb0a5ec2a958790
cmd/link: mark special symbols reachable

The special symbols are linker-created symbols for special
purposes, therefore reachable (otherwise the linker won't create
them). Mark them so, so they get converted to sym.Symbols when we
convert to old symbol representation.

In particular, the failure for building shared library on PPC64
is due to .TOC. symbol not being converted to sym.Symbol, but
referenced in addmoduledata.

Change-Id: Iaf5d145ffa5d15122e86a6e6983514e56dd5d456
Reviewed-on: https://go-review.googlesource.com/c/go/+/240620
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go