[U-Boot] [PATCH 06/82] elf: Add the Elf64_Rela type

Simon Glass sjg at chromium.org
Mon Sep 26 05:33:09 CEST 2016


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

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/elf.h | 6 ++++++
 1 file changed, 6 insertions(+)

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))
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list