mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
ARM64: support relocated "TBZ/TBNZ" instructions.
llvm-svn: 207110
This commit is contained in:
parent
e881c63815
commit
cc19f68db6
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user