HomePhabricator

[LLD][ELF] - Report a location for symbols from the linker script when…

Description

[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

Details

Committed
grimarDec 19 2018, 2:19 AM
Differential Revision
D55360: [LLD][ELF] - Report a location for symbols from the linker script when reporting an error.
Branches
Unknown
Tags
Unknown