Skip to content
Snippets Groups Projects
Commit 2547f3ed authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

elf: Add the Elf64_Rela type


Add this so that we can support 64-bit relocation on x86.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 006bccbd
No related branches found
No related tags found
No related merge requests found
...@@ -394,6 +394,12 @@ typedef struct { ...@@ -394,6 +394,12 @@ typedef struct {
Elf64_Xword r_info; /* index and type of relocation */ Elf64_Xword r_info; /* index and type of relocation */
} Elf64_Rel; } 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 */ /* Extract relocation info - r_info */
#define ELF32_R_SYM(i) ((i) >> 8) #define ELF32_R_SYM(i) ((i) >> 8)
#define ELF32_R_TYPE(i) ((unsigned char) (i)) #define ELF32_R_TYPE(i) ((unsigned char) (i))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment