• Austin Clements's avatar
    cmd/link: nice error message on ABI mismatch · 1794ee68
    Austin Clements authored
    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: 's avatarKeith Randall <khr@golang.org>
    1794ee68
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
ld Loading commit data...
loadelf Loading commit data...
loadmacho Loading commit data...
loadpe Loading commit data...
loadxcoff Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
objfile Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
sym Loading commit data...
wasm Loading commit data...
x86 Loading commit data...