Mark R_AARCH64_CONDBR19 as relative.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 24 Mar 2016 12:16:46 +0000 (12:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 24 Mar 2016 12:16:46 +0000 (12:16 +0000)
llvm-svn: 264262

lld/ELF/Target.cpp
lld/test/ELF/aarch64-relative.s

index 0cf8de9..464738b 100644 (file)
@@ -1229,7 +1229,8 @@ bool AArch64TargetInfo::isRelRelative(uint32_t Type) const {
          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 {
index 0a220a2..cd33d09 100644 (file)
@@ -8,6 +8,7 @@
         ldr     x0, [x8, :lo12:.Lfoo]
         add     x0, x0, :lo12:.Lfoo
         bl      .Lfoo
+        b.eq    .Lfoo
 
         .data
         .Lfoo: