]> Cypherpunks repositories - gostls13.git/commit
cmd/link: skip symbol references when looking for missing symbols
authorJoel Sing <joel@sing.id.au>
Tue, 25 Feb 2020 15:48:24 +0000 (02:48 +1100)
committerJoel Sing <joel@sing.id.au>
Thu, 2 Apr 2020 15:54:17 +0000 (15:54 +0000)
commitaa4d92b8aab63c847ab077417b809694a2a6ea81
tree551a4601c1c4023afc20d2c96f9068739fbdfb9d
parent1dbcbcfca4692f67db7de2c1ff6a5ee59511cfa4
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: I9bfc40146dec2666d25e93d3bcd1984da5c71215
Reviewed-on: https://go-review.googlesource.com/c/go/+/220917
Run-TryBot: Than McIntosh <thanm@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/link.go
src/cmd/link/link_test.go