From d047cb716ee41ead450af5e8cc8e7190d2d04673 Mon Sep 17 00:00:00 2001 From: Laurent Dufour Date: Mon, 3 Feb 2014 15:37:49 +0100 Subject: 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 Signed-off-by: Simon Horman --- include/elf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/elf.h b/include/elf.h index 1a2eb5a..5db637b 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 -- cgit