From: Simon Glass Date: Mon, 26 Sep 2016 03:33:09 +0000 (-0600) Subject: elf: Add the Elf64_Rela type X-Git-Tag: v2016.11-rc2~11^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2547f3ed897b0ce252db0ffb8596ec9730ea1833;p=platform%2Fkernel%2Fu-boot.git elf: Add the Elf64_Rela type Add this so that we can support 64-bit relocation on x86. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/include/elf.h b/include/elf.h index a35e085..bcc5eb7 100644 --- a/include/elf.h +++ b/include/elf.h @@ -394,6 +394,12 @@ typedef struct { Elf64_Xword r_info; /* index and type of relocation */ } Elf64_Rel; +typedef struct { + Elf64_Addr r_offset; /* Location at which to apply the action */ + Elf64_Xword r_info; /* index and type of relocation */ + Elf64_Sxword r_addend; /* Constant addend used to compute value */ +} Elf64_Rela; + /* Extract relocation info - r_info */ #define ELF32_R_SYM(i) ((i) >> 8) #define ELF32_R_TYPE(i) ((unsigned char) (i))