[LLD][ELF] - Report a location for symbols from the linker script when reporting...
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 19 Dec 2018 10:19:40 +0000 (10:19 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 19 Dec 2018 10:19:40 +0000 (10:19 +0000)
commit751e6e1cf54bf8fcc07982b100dd774f43a6c5b5
treef0a1a1f4aaf0864b04167279308f105e9d29b084
parentc521ac3a44a8ecdc1e2e362ce8c321ca9c76f25f
[LLD][ELF] - Report a location for symbols from the linker script when reporting an error.

When we report an error for symbols defined in the linker script,
we do not report the location properly.

For example:

ld.lld: error: relocation R_AARCH64_CALL26 cannot refer to absolute symbol: aliasto__text
>>> defined in <internal>
>>> referenced by rtoabs.o:(.text+0x4)

This patch fixes that.

Differential revision: https://reviews.llvm.org/D55360

llvm-svn: 349612
lld/ELF/Relocations.cpp
lld/test/ELF/linkerscript/symbol-location.s [new file with mode: 0644]