ARM64: support relocated "TBZ/TBNZ" instructions.

llvm-svn: 207110
This commit is contained in:
Tim Northover 2014-04-24 12:56:34 +00:00
parent e881c63815
commit cc19f68db6
2 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,8 @@ unsigned ARM64ELFObjectWriter::GetRelocType(const MCValue &Target,
if (SymLoc == ARM64MCExpr::VK_GOTTPREL)
return ELF::R_AARCH64_TLSIE_LD_GOTTPREL_PREL19;
return ELF::R_AARCH64_LD_PREL_LO19;
case ARM64::fixup_arm64_pcrel_branch14:
return ELF::R_AARCH64_TSTBR14;
case ARM64::fixup_arm64_pcrel_branch19:
return ELF::R_AARCH64_CONDBR19;
default:

View File

@ -1,4 +1,7 @@
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj %s -o - | \
// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
// RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj %s -o - | \
// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
tbz x6, #45, somewhere