[lld] r264262 - Mark R_AARCH64_CONDBR19 as relative.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 05:16:46 PDT 2016
Author: rafael
Date: Thu Mar 24 07:16:46 2016
New Revision: 264262
URL: http://llvm.org/viewvc/llvm-project?rev=264262&view=rev
Log:
Mark R_AARCH64_CONDBR19 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=264262&r1=264261&r2=264262&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Mar 24 07:16:46 2016
@@ -1229,7 +1229,8 @@ bool AArch64TargetInfo::isRelRelative(ui
Type == R_AARCH64_LDST8_ABS_LO12_NC ||
Type == R_AARCH64_LDST32_ABS_LO12_NC ||
Type == R_AARCH64_LDST64_ABS_LO12_NC ||
- Type == R_AARCH64_ADD_ABS_LO12_NC || Type == R_AARCH64_CALL26;
+ Type == R_AARCH64_ADD_ABS_LO12_NC || Type == R_AARCH64_CALL26 ||
+ Type == R_AARCH64_CONDBR19;
}
bool AArch64TargetInfo::isTlsGlobalDynamicRel(uint32_t 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=264262&r1=264261&r2=264262&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-relative.s (original)
+++ lld/trunk/test/ELF/aarch64-relative.s Thu Mar 24 07:16:46 2016
@@ -8,6 +8,7 @@
ldr x0, [x8, :lo12:.Lfoo]
add x0, x0, :lo12:.Lfoo
bl .Lfoo
+ b.eq .Lfoo
.data
.Lfoo:
More information about the llvm-commits
mailing list