]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: move the wavefront past addexport()
authorThan McIntosh <thanm@google.com>
Mon, 30 Mar 2020 14:06:54 +0000 (10:06 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 30 Mar 2020 18:44:30 +0000 (18:44 +0000)
commit84111acd35a33eb02508e2b014f612e9862c480b
treea1eef31398204b7a03f285539b3d0f9195f98a75
parent021bebe990f46b052881fb9101e27ea3bc9d9770
[dev.link] cmd/link: move the wavefront past addexport()

Reorganize the linker phase ordering so that addexport() runs before
loadlibfull. In previous CLs addexport() was changed to use loader
APIs but then copy back its work into sym.Symbol, so this change
removes the copying/shim code in question.

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