diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-05-08 17:50:57 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-05-08 17:50:57 +0000 |
commit | c37077af7bfdc22da2d267eee7905927dd5fdd17 (patch) | |
tree | bb01cf1bc63e8a97be0e43ff7eacc436cd936e4d /include/llvm/Support/ELF.h | |
parent | a3967b6844f4be588c724ada3692e734bba65cf1 (diff) | |
download | llvm-c37077af7bfdc22da2d267eee7905927dd5fdd17.tar.gz llvm-c37077af7bfdc22da2d267eee7905927dd5fdd17.tar.bz2 llvm-c37077af7bfdc22da2d267eee7905927dd5fdd17.tar.xz |
[PowerPC] Add some missing PPC64 relocs
All R_PPC_... relocs should also be present (using the same number)
under the corresponding R_PPC64_... name. The latter were missing
for a couple of cases, which this patch adds.
This is not a big problem when emitting the reloc, because we can
just use the R_PPC_... define instead. But it is a problem when
*dumping* relocations e.g. using llvm-readobj, because this will
expect only R_PPC64_... values when inspecting a ppc64 ELF file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ELF.h')
-rw-r--r-- | include/llvm/Support/ELF.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index c46dfebd37..bf5a650e62 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -468,10 +468,18 @@ enum { enum { R_PPC64_NONE = 0, R_PPC64_ADDR32 = 1, + R_PPC64_ADDR24 = 2, + R_PPC64_ADDR16 = 3, R_PPC64_ADDR16_LO = 4, R_PPC64_ADDR16_HI = 5, + R_PPC64_ADDR16_HA = 6, R_PPC64_ADDR14 = 7, + R_PPC64_ADDR14_BRTAKEN = 8, + R_PPC64_ADDR14_BRNTAKEN = 9, R_PPC64_REL24 = 10, + R_PPC64_REL14 = 11, + R_PPC64_REL14_BRTAKEN = 12, + R_PPC64_REL14_BRNTAKEN = 13, R_PPC64_REL32 = 26, R_PPC64_ADDR64 = 38, R_PPC64_ADDR16_HIGHER = 39, |