[lld] r236727 - [ARM] llvm_unreachable => make_dynamic_error in R_ARM_BASE_PREL
Denis Protivensky
dprotivensky at accesssoftek.com
Thu May 7 06:44:51 PDT 2015
Author: denis-protivensky
Date: Thu May 7 08:44:51 2015
New Revision: 236727
URL: http://llvm.org/viewvc/llvm-project?rev=236727&view=rev
Log:
[ARM] llvm_unreachable => make_dynamic_error in R_ARM_BASE_PREL
Modified:
lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp?rev=236727&r1=236726&r2=236727&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp Thu May 7 08:44:51 2015
@@ -638,7 +638,8 @@ std::error_code ARMTargetRelocationHandl
if (!target || ref.target()->name().equals("_GLOBAL_OFFSET_TABLE_")) {
target = _armLayout.getGOTSymAddr();
} else {
- llvm_unreachable("Segment-base relative addressing is not supported");
+ return make_dynamic_error_code(
+ "Segment-base relative addressing is not supported");
}
return relocR_ARM_BASE_PREL(loc, reloc, target, addend);
case R_ARM_ALU_PC_G0_NC:
More information about the llvm-commits
mailing list