[lld] r261772 - Mark R_AARCH64_ADD_ABS_LO12_NC as relative.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 24 13:48:06 PST 2016
Author: rafael
Date: Wed Feb 24 15:48:06 2016
New Revision: 261772
URL: http://llvm.org/viewvc/llvm-project?rev=261772&view=rev
Log:
Mark R_AARCH64_ADD_ABS_LO12_NC as relative.
Modified:
lld/trunk/ELF/Target.cpp
lld/trunk/test/ELF/aarch64-relative.s
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=261772&r1=261771&r2=261772&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Wed Feb 24 15:48:06 2016
@@ -1223,7 +1223,8 @@ bool AArch64TargetInfo::isRelRelative(ui
return Type == R_AARCH64_PREL32 || Type == R_AARCH64_ADR_PREL_PG_HI21 ||
Type == R_AARCH64_LDST8_ABS_LO12_NC ||
Type == R_AARCH64_LDST32_ABS_LO12_NC ||
- Type == R_AARCH64_LDST64_ABS_LO12_NC;
+ Type == R_AARCH64_LDST64_ABS_LO12_NC ||
+ Type == R_AARCH64_ADD_ABS_LO12_NC;
}
bool AArch64TargetInfo::isTlsGlobalDynamicRel(unsigned Type) const {
Modified: lld/trunk/test/ELF/aarch64-relative.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-relative.s?rev=261772&r1=261771&r2=261772&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-relative.s (original)
+++ lld/trunk/test/ELF/aarch64-relative.s Wed Feb 24 15:48:06 2016
@@ -6,6 +6,7 @@
strb w9, [x8, :lo12:.Lfoo]
ldr w0, [x8, :lo12:.Lfoo]
ldr x0, [x8, :lo12:.Lfoo]
+ add x0, x0, :lo12:.Lfoo
.data
.Lfoo:
More information about the llvm-commits
mailing list