diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-08-16 18:31:29 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-08-16 18:31:29 +0000 |
commit | dd4b9f3fe9980dd0d7741c4e9ec817b330c134fe (patch) | |
tree | 6bbad8ddce51612b735c104a1389440594286109 /include | |
parent | 745d94d29fec3df001a08062644e68052ac14618 (diff) | |
download | external_llvm-dd4b9f3fe9980dd0d7741c4e9ec817b330c134fe.zip external_llvm-dd4b9f3fe9980dd0d7741c4e9ec817b330c134fe.tar.gz external_llvm-dd4b9f3fe9980dd0d7741c4e9ec817b330c134fe.tar.bz2 |
Add PPC64 relocations definitions, by Adhemerval Zanella.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/ELF.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index f7ae60f..7fae717 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -441,6 +441,7 @@ enum { R_MICROBLAZE_COPY = 21 }; +// ELF Relocation types for PPC32 enum { R_PPC_NONE = 0, /* No relocation. */ R_PPC_ADDR32 = 1, @@ -459,6 +460,21 @@ enum { R_PPC_REL32 = 26 }; +// ELF Relocation types for PPC64 +enum { + R_PPC64_ADDR16_LO = 4, + R_PPC64_ADDR16_HA = 6, + R_PPC64_ADDR14 = 7, + R_PPC64_REL24 = 10, + R_PPC64_ADDR64 = 38, + R_PPC64_TOC16 = 47, + R_PPC64_TOC16_LO = 48, + R_PPC64_TOC16_HI = 49, + R_PPC64_TOC16_HA = 50, + R_PPC64_TOC = 51, + R_PPC64_TOC16_DS = 63 +}; + // ARM Specific e_flags enum { EF_ARM_EABIMASK = 0xFF000000U }; |