diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-25 21:33:09 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-10-11 11:55:33 +0800 |
commit | 2547f3ed897b0ce252db0ffb8596ec9730ea1833 (patch) | |
tree | 7bcc2b860e2f59a51969f666bf472ef6e680e8ea /include | |
parent | 006bccbd0d757da78bfd2a244d96f61e0f7d2c66 (diff) | |
download | u-boot-imx-2547f3ed897b0ce252db0ffb8596ec9730ea1833.zip u-boot-imx-2547f3ed897b0ce252db0ffb8596ec9730ea1833.tar.gz u-boot-imx-2547f3ed897b0ce252db0ffb8596ec9730ea1833.tar.bz2 |
elf: Add the Elf64_Rela type
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/elf.h | 6 |
1 files changed, 6 insertions, 0 deletions
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)) |