Skip to content

Commit 678c1f1

Browse files
committed
[ELF] Remove a R_ARM_PCA special case from relocateNonAlloc
https://reviews.llvm.org/D75042 added a special case about R_ARM_PCA to relocateNonAlloc. This is untested and actually unused in the wild.
1 parent a495b2f commit 678c1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/InputSection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ void InputSection::relocateNonAlloc(uint8_t *buf, ArrayRef<RelTy> rels) {
975975
std::string msg = getLocation(offset) + ": has non-ABS relocation " +
976976
toString(type) + " against symbol '" + toString(sym) +
977977
"'";
978-
if (expr != R_PC && expr != R_ARM_PCA) {
978+
if (expr != R_PC) {
979979
error(msg);
980980
return;
981981
}

0 commit comments

Comments
 (0)