[lld] r174092 - [ELF][x86-64] Improve unknown relocation message.
Michael J. Spencer
bigcheesegs at gmail.com
Thu Jan 31 13:00:57 PST 2013
Author: mspencer
Date: Thu Jan 31 15:00:57 2013
New Revision: 174092
URL: http://llvm.org/viewvc/llvm-project?rev=174092&view=rev
Log:
[ELF][x86-64] Improve unknown relocation message.
Modified:
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.cpp?rev=174092&r1=174091&r2=174092&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.cpp Thu Jan 31 15:00:57 2013
@@ -76,8 +76,9 @@ ErrorOr<void> X86_64TargetRelocationHand
std::string str;
llvm::raw_string_ostream s(str);
auto name = _targetInfo.stringFromRelocKind(ref.kind());
- s << "Unhandled relocation: "
- << (name ? *name : "<unknown>" ) << " (" << ref.kind() << ")";
+ s << "Unhandled relocation: " << atom._atom->file().path() << ":"
+ << atom._atom->name() << "@" << ref.offsetInAtom() << " "
+ << (name ? *name : "<unknown>") << " (" << ref.kind() << ")";
s.flush();
llvm_unreachable(str.c_str());
}
More information about the llvm-commits
mailing list