diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-03 22:55:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-03 22:55:46 +0000 |
commit | 9cded98ad6ac4dc6be7ce9b4b8ae80815c46a41a (patch) | |
tree | c8dc426253679ed5ed5aaa95ae2e684e2c8d1a66 /lld/ELF/Relocations.cpp | |
parent | 7c99c1472267e4dfb2edad46555022d98dcd185c (diff) | |
download | bcm5719-llvm-9cded98ad6ac4dc6be7ce9b4b8ae80815c46a41a.tar.gz bcm5719-llvm-9cded98ad6ac4dc6be7ce9b4b8ae80815c46a41a.zip |
Mention symbol name in error message.
llvm-svn: 321769
Diffstat (limited to 'lld/ELF/Relocations.cpp')
-rw-r--r-- | lld/ELF/Relocations.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 4fcec81bce6..4eb0adb908b 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -983,10 +983,9 @@ static void scanRelocs(InputSectionBase &Sec, ArrayRef<RelTy> Rels) { // We don't know anything about the finaly symbol. Just ask the dynamic // linker to handle the relocation for us. if (!Target->isPicRel(Type)) - errorOrWarn( - "relocation " + toString(Type) + - " cannot be used against shared object; recompile with -fPIC" + - getLocation(Sec, Sym, Offset)); + errorOrWarn("relocation " + toString(Type) + + " cannot be used against symbol " + toString(Sym) + + "; recompile with -fPIC" + getLocation(Sec, Sym, Offset)); InX::RelaDyn->addReloc( {Target->getDynRel(Type), &Sec, Offset, false, &Sym, Addend}); |