]> Cypherpunks repositories - gostls13.git/commit
cmd/link: skip symbol references when looking for missing symbols
authorJoel Sing <joel@sing.id.au>
Fri, 30 Aug 2019 15:02:04 +0000 (01:02 +1000)
committerJoel Sing <joel@sing.id.au>
Sat, 4 Jan 2020 12:10:10 +0000 (12:10 +0000)
commit8adc1e00aa1a92a85b9d6f3526419d49dd7859dd
treef448a185af98cb58a886d8784ff872ce3795c029
parent3a6cd4c72d5c8fc6c86f074eadaaf3972e591973
cmd/link: skip symbol references when looking for missing symbols

ErrorUnresolved attempts to find the missing symbol in another ABI,
in order to provide more friendly error messages. However, in doing so
it checks the same ABI and can find the symbol reference for the symbol
that it is currently reporting the unresolved error for. Avoid this by
ignoring SXREF symbols, which is the same behaviour used when linking
is performed.

Fixes #33979

Change-Id: I3cb2477b2ad4baa7c2007323b983eb29404b0aac
Reviewed-on: https://go-review.googlesource.com/c/go/+/192597
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/cmd/link/internal/ld/link.go
src/cmd/link/link_test.go