[llvm-commits] [llvm] r162035 - /llvm/trunk/include/llvm/Support/ELF.h
Roman Divacky
rdivacky at freebsd.org
Thu Aug 16 11:31:29 PDT 2012
Author: rdivacky
Date: Thu Aug 16 13:31:29 2012
New Revision: 162035
URL: http://llvm.org/viewvc/llvm-project?rev=162035&view=rev
Log:
Add PPC64 relocations definitions, by Adhemerval Zanella.
Modified:
llvm/trunk/include/llvm/Support/ELF.h
Modified: llvm/trunk/include/llvm/Support/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ELF.h?rev=162035&r1=162034&r2=162035&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ELF.h (original)
+++ llvm/trunk/include/llvm/Support/ELF.h Thu Aug 16 13:31:29 2012
@@ -441,6 +441,7 @@
R_MICROBLAZE_COPY = 21
};
+// ELF Relocation types for PPC32
enum {
R_PPC_NONE = 0, /* No relocation. */
R_PPC_ADDR32 = 1,
@@ -459,6 +460,21 @@
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 };
More information about the llvm-commits
mailing list