From: Rafael Espindola Date: Thu, 24 Mar 2016 12:16:46 +0000 (+0000) Subject: Mark R_AARCH64_CONDBR19 as relative. X-Git-Tag: llvmorg-3.9.0-rc1~11060 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88a9d7608fc24bcc833df93179550219b6e88c06;p=platform%2Fupstream%2Fllvm.git Mark R_AARCH64_CONDBR19 as relative. llvm-svn: 264262 --- diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 0cf8de9..464738b 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -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 { diff --git a/lld/test/ELF/aarch64-relative.s b/lld/test/ELF/aarch64-relative.s index 0a220a27..cd33d09 100644 --- a/lld/test/ELF/aarch64-relative.s +++ b/lld/test/ELF/aarch64-relative.s @@ -8,6 +8,7 @@ ldr x0, [x8, :lo12:.Lfoo] add x0, x0, :lo12:.Lfoo bl .Lfoo + b.eq .Lfoo .data .Lfoo: