forked from OSchip/llvm-project
[ARM] llvm_unreachable => make_dynamic_error in R_ARM_BASE_PREL
llvm-svn: 236727
This commit is contained in:
parent
aaeba9ebb9
commit
cf4e031b36
|
@ -638,7 +638,8 @@ std::error_code ARMTargetRelocationHandler::applyRelocation(
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue