]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Update AArch64 ELF relocations to ABI 1.0
authorWill Newton <will.newton@linaro.org>
Wed, 26 Nov 2014 10:49:18 +0000 (10:49 +0000)
committerWill Newton <will.newton@linaro.org>
Wed, 26 Nov 2014 10:49:18 +0000 (10:49 +0000)
commit87a2f3751c5ff7fff35a028105b0a33f993ccf77
tree642e3f1e516d8ec4fa02be932c768f2120218a4e
parent10c8f380478d579fb150fdfa054740563e95aa41
Update AArch64 ELF relocations to ABI 1.0

This mostly entails adding relocations, however there are a couple of
changes to existing relocations:

1. R_AARCH64_NONE is defined to be zero rather than 256

R_AARCH64_NONE has been defined to be zero for a long time elsewhere
e.g. binutils and glibc since the submission of the AArch64 port in
2012 so this is required for compatibility.

2. R_AARCH64_TLSDESC_ADR_PAGE renamed to R_AARCH64_TLSDESC_ADR_PAGE21

I don't think there is any way for relocation names to leak out of LLVM
so this should not break anything.

Tested with check-all with no regressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222821 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ELFRelocs/AArch64.def
lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
test/CodeGen/AArch64/arm64-tls-dynamics.ll
test/MC/AArch64/adrp-relocation.s
test/MC/AArch64/arm64-elf-relocs.s
test/MC/AArch64/arm64-tls-relocs.s
test/MC/AArch64/inline-asm-modifiers.s
test/MC/AArch64/tls-relocs.s
test/tools/llvm-readobj/Inputs/relocs.obj.elf-aarch64
test/tools/llvm-readobj/Inputs/relocs.py
test/tools/llvm-readobj/reloc-types.test