]> git.sur5r.net Git - u-boot/commitdiff
elf: Add the Elf64_Rela type
authorSimon Glass <sjg@chromium.org>
Mon, 26 Sep 2016 03:33:09 +0000 (21:33 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000 (11:55 +0800)
Add this so that we can support 64-bit relocation on x86.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/elf.h

index a35e085d82a3beade121accaa44b2d54268f7915..bcc5eb7b07927c9c84fc8f57da8d74e8c5a2e01b 100644 (file)
@@ -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))