summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>2014-02-03 15:37:49 +0100
committerSimon Horman <horms@verge.net.au>2014-02-04 17:26:10 +0900
commitd047cb716ee41ead450af5e8cc8e7190d2d04673 (patch)
tree322f36bcfd1c07ed46b733651623c78e2d4662a4 /include
parent178e393d3a00604143eab2889939ea13be095e03 (diff)
downloadkexec-tools-d047cb716ee41ead450af5e8cc8e7190d2d04673.tar.gz
kexec/ppc64 ELF ABIv2 ABI support
When building in PPC64 little endian mode, the compiler is now using the new ABI v2. Among other changes, this new ABI removes the function descriptors and changes the way the TOC address is computed when entering a C function. The purgatory assembly part where the dot symbols are removed, and ELF relocation code are impacted in this patch. Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/elf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 1a2eb5a8..5db637ba 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -1984,6 +1984,10 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_PPC64_DTPREL16_HIGHERA 104 /* half16 (sym+add)@dtprel@highera */
#define R_PPC64_DTPREL16_HIGHEST 105 /* half16 (sym+add)@dtprel@highest */
#define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */
+#define R_PPC64_REL16 249 /* half16 (sym+add-.) */
+#define R_PPC64_REL16_LO 250 /* half16 (sym+add-.)@l */
+#define R_PPC64_REL16_HI 251 /* half16 (sym+add-.)@h */
+#define R_PPC64_REL16_HA 252 /* half16 (sym+add-.)@ha */
/* Keep this the last entry. */
#define R_PPC64_NUM 107