]> Cypherpunks repositories - gostls13.git/commit
cmd/link: pass-through undefined call targets 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>
Mon, 28 Oct 2019 22:10:06 +0000 (22:10 +0000)
commit59a684703913e383c482c1383b2d4958c674248c
tree55c8dee6e8cde6265dea9341f07a23be385258e6
parent81d6ec204fcfbcbb617f38b8ee5183080669c066
cmd/link: pass-through undefined call targets in external link mode

Allows Go asm calls referencing a function in a .syso file to be
passed through to the external linker, that would have otherwise
raised a "relocation target X not defined" error in cmd/link.

Fixes #33139

Change-Id: I2a8eb6063ebcd05fac96f141acf7652cf9189766
Reviewed-on: https://go-review.googlesource.com/c/go/+/198798
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
12 files changed:
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/ld/xcoff.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/sym/symkind.go
src/cmd/link/internal/sym/symkind_string.go