summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ELF.h
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-18 16:38:02 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-18 16:38:02 +0000
commit10a431824831c1d57a62dd84346387238f516e0c (patch)
tree79d4520059529cdceccada02c041a575eee0a853 /include/llvm/Support/ELF.h
parent6e67b254ae2cf2411cb2d1ae41bf0fbc05079f40 (diff)
downloadllvm-10a431824831c1d57a62dd84346387238f516e0c.tar.gz
llvm-10a431824831c1d57a62dd84346387238f516e0c.tar.bz2
llvm-10a431824831c1d57a62dd84346387238f516e0c.tar.xz
Add PowerPC64 relocation definitions. Patch by Adhemerval Zanella!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ELF.h')
-rw-r--r--include/llvm/Support/ELF.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index f7ae60fef7..13788832bd 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,20 @@ enum {
R_PPC_REL32 = 26
};
+// ELF Relocation types for PPC64
+enum {
+ R_PPC64_ADDR16_LO = 4,
+ R_PPC64_ADDR16_HI = 5,
+ R_PPC64_ADDR14 = 7,
+ R_PPC64_REL24 = 10,
+ R_PPC64_ADDR64 = 38,
+ R_PPC64_ADDR16_HIGHER = 39,
+ R_PPC64_ADDR16_HIGHEST = 41,
+ R_PPC64_TOC16 = 47,
+ R_PPC64_TOC = 51,
+ R_PPC64_TOC16_DS = 63
+};
+
// ARM Specific e_flags
enum { EF_ARM_EABIMASK = 0xFF000000U };