[dev.link] cmd/link: convert asmb2 pass to new style on Wasm

And no longer do loadlibfull there.

Change-Id: I3dd41d25f5f7db4ef1d112559299e322acb32641
Reviewed-on: https://go-review.googlesource.com/c/go/+/232987
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Cherry Zhang 2020-05-08 14:09:57 -04:00
parent 6d7c2459ad
commit 744641ef37
12 changed files with 48 additions and 42 deletions

View file

@ -825,7 +825,7 @@ func asmb(ctxt *ld.Link, _ *loader.Loader) {
wg.Wait()
}
func asmb2(ctxt *ld.Link) {
func asmb2(ctxt *ld.Link, _ *loader.Loader) {
machlink := uint32(0)
if ctxt.HeadType == objabi.Hdarwin {
machlink = uint32(ld.Domacholink(ctxt))