]> Cypherpunks repositories - gostls13.git/commit
cmd/link: load symbols from .syso in external link mode
authorJohn Papandriopoulos <jpap.code@gmail.com>
Sun, 29 Sep 2019 23:59:56 +0000 (16:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 1 Oct 2019 00:02:11 +0000 (00:02 +0000)
commit5e514b76e2e55efbca917c686c93b2299d57386c
treea0e413d833e893c3fe183e70de9716f0dcd7f99b
parent27cf81e1b48efe6a6387f34c7114766c7b0d4d73
cmd/link: load symbols from .syso in external link mode

Fix linking with a package having a .syso file in external link mode,
that would otherwise cause an error before executing the external
linker because it can't find symbols that are exported in the said
.syso file.

Fixes #33139

Change-Id: Id3ee737fba1c6f1e37910593dfedf9c84486d398
Reviewed-on: https://go-review.googlesource.com/c/go/+/186417
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/testdata/script/link_syso_issue33139.txt [new file with mode: 0644]
src/cmd/link/internal/arm/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/go.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/sym/symkind.go
src/cmd/link/internal/sym/symkind_string.go