mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: remove *Link from relocsym
This is the last step requried before relocsym can go parallel. Change-Id: Id1c1c530c2b9277917208c3767eeb29e02c17a9c Reviewed-on: https://go-review.googlesource.com/c/go/+/220841 Run-TryBot: Jeremy Faller <jeremy@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
4ab7ab54b0
commit
7d8aef689d
4 changed files with 32 additions and 21 deletions
|
|
@ -105,6 +105,9 @@ type ArchSyms struct {
|
|||
GOT *sym.Symbol
|
||||
PLT *sym.Symbol
|
||||
GOTPLT *sym.Symbol
|
||||
|
||||
Tlsg *sym.Symbol
|
||||
Tlsoffset int
|
||||
}
|
||||
|
||||
// setArchSyms sets up the ArchSyms structure, and must be called before
|
||||
|
|
@ -2651,6 +2654,7 @@ func (ctxt *Link) loadlibfull() {
|
|||
|
||||
// Pull the symbols out.
|
||||
ctxt.loader.ExtractSymbols(ctxt.Syms, ctxt.Reachparent)
|
||||
ctxt.lookup = ctxt.Syms.ROLookup
|
||||
|
||||
// When we generated dwarf DIE objects, we created them
|
||||
// with embedded loader.Sym refs as opposed to sym.Symbol refs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue