]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: add dupok symbols resolved to another package to textp
authorCherry Zhang <cherryyz@google.com>
Fri, 11 Oct 2019 21:43:32 +0000 (17:43 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 15 Oct 2019 18:59:52 +0000 (18:59 +0000)
commit5fec7882391e839e0b6811b2d4347f0ba8b12358
treea7c68391455fe4703f917574c3466d749b1e540a
parent6ba3ae9ca547f6078c51f871717f48746e93271a
[dev.link] cmd/link: add dupok symbols resolved to another package to textp

When a dupok symbol is resolved to another package, we still need
to record its presence in the current package, as the trampoline
pass expects packages are laid out in dependency order. At the
point after deadcode where we populate symbol contents for
reachable symbols (add relocations and read symbol data), make a
note of the dupok text symbols for each package. Later in
addToTextp we will visit packages in dependency order, process
the dup text symbol list for each package and select a final lib
for each dup text symbol.

Change-Id: Ib885e0a7e2343229d853aa629e3e337111df6011
Reviewed-on: https://go-review.googlesource.com/c/go/+/200797
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/objfile/objfile2.go