]> Cypherpunks repositories - gostls13.git/commit
cmd/link: nice error message on ABI mismatch
authorAustin Clements <austin@google.com>
Thu, 1 Nov 2018 00:42:38 +0000 (20:42 -0400)
committerAustin Clements <austin@google.com>
Mon, 12 Nov 2018 20:46:52 +0000 (20:46 +0000)
commit1794ee682994ed2efbb9371060856cd7b146f405
treee40726bb83e7b1c359c0f1a9acdc095e7c132572
parent16e6cd9a4dc499db164624a048f25e2f382ac016
cmd/link: nice error message on ABI mismatch

Currently, if a symbol is only defined under one ABI and referenced
under another ABI, you simply get a "relocation target X not defined".
This is confusing because it seems like the symbol is defined.

This CL enhances the error message in this case to be "relocation
target X not defined for <ABI> (but is defined for <ABI>)".

For #27539.

Change-Id: If857a1882c3fe9af5346797d5295ca1fe50ae565
Reviewed-on: https://go-review.googlesource.com/c/147159
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/link/internal/ld/link.go