]> xenbits.xensource.com Git - xen.git/commitdiff
elf: Add relocation types to elfstructs.h
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 27 Oct 2015 16:21:32 +0000 (16:21 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 15 Mar 2016 14:28:10 +0000 (10:28 -0400)
GCC generates R_X86_64_64, R_X86_64_PC32, and R_X86_64_PLT32
relocations so those are the ones we need initially
to support xSplice.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xen/elfstructs.h

index 12ffb82a1ad22af6d11780f4d419760c0ad976f0..85f35edc1928667cb6e6a800caa3dff5aae91c05 100644 (file)
@@ -348,6 +348,12 @@ typedef struct {
 #define        ELF64_R_TYPE(info)      ((info) & 0xFFFFFFFF)
 #define ELF64_R_INFO(s,t)      (((s) << 32) + (u_int32_t)(t))
 
+/* x86-64 relocation types. We list only the ones xSplice implements. */
+#define R_X86_64_NONE          0       /* No reloc */
+#define R_X86_64_64            1       /* Direct 64 bit  */
+#define R_X86_64_PC32          2       /* PC relative 32 bit signed */
+#define R_X86_64_PLT32         4       /* 32 bit PLT address */
+
 /* Program Header */
 typedef struct {
        Elf32_Word      p_type;         /* segment type */