]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link/internal/loader: fix AttrSubSymbol
authorThan McIntosh <thanm@google.com>
Wed, 22 Apr 2020 17:40:22 +0000 (13:40 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 22 Apr 2020 19:37:28 +0000 (19:37 +0000)
commit00723603eb1e183e010371fc5aa76a3d8efda8d1
treebc3a417b36207f0fbfc6b7a70ec9dff41e9ef84d
parent25992d025f01d27bd7e38d45daa95e420d56ece5
[dev.link] cmd/link/internal/loader: fix AttrSubSymbol

The code that runs as a part of loadlibfull converts the linker's
outer/sub state and sets the sym.Symbol AttrSubSymbol if a symbol has
both A) an outer sym, and B) is listed as a sub-symbol by some other
symbol.

Make sure that we have the same logic in the original loader method,
since we need to use it as part of dodata() prior to loadlibfull.

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