]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: run setArchSyms earlier
authorThan McIntosh <thanm@google.com>
Mon, 30 Mar 2020 14:05:23 +0000 (10:05 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 30 Mar 2020 18:13:43 +0000 (18:13 +0000)
commit021bebe990f46b052881fb9101e27ea3bc9d9770
tree63d99b394d631d78ed3ffbe949ebaae2fb00da09
parent3919e89c56b86f8ccabf35c56be88593551dd59f
[dev.link] cmd/link: run setArchSyms earlier

Add some new loader.Sym equivalents to the archSyms struct so that we
can run setArchSyms earlier in the pipeline, and add a "mode" to
setArchSyms to control whether it should create loader.Sym symbols or
their *sym.Symbol equivalents.

These change needed for a subsequent patch in which addexport() is run
earlier as well

Change-Id: I0475c9388c39f13e045dd4aa9c90eaec42624810
Reviewed-on: https://go-review.googlesource.com/c/go/+/226361
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/ld/lib.go
src/cmd/link/internal/ld/main.go