From 47f6298c8766e0add5b90ade1d44b1bbf7f836ae Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 21 Dec 2023 12:22:52 +0000 Subject: [PATCH] [efi] Add potentially missing relocation types Add definitions for relocation types that may be missing on older versions of the host system's elf.h. Signed-off-by: Michael Brown --- src/elf2efi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/elf2efi.c b/src/elf2efi.c index 099928c..2dc5f2d 100644 --- a/src/elf2efi.c +++ b/src/elf2efi.c @@ -122,6 +122,9 @@ #ifndef R_AARCH64_LDST64_ABS_LO12_NC #define R_AARCH64_LDST64_ABS_LO12_NC 286 #endif +#ifndef R_AARCH64_LDST128_ABS_LO12_NC +#define R_AARCH64_LDST128_ABS_LO12_NC 299 +#endif #ifndef R_ARM_CALL #define R_ARM_CALL 28 #endif @@ -152,6 +155,12 @@ #ifndef R_LARCH_GOT_PC_LO12 #define R_LARCH_GOT_PC_LO12 76 #endif +#ifndef R_X86_64_GOTPCRELX +#define R_X86_64_GOTPCRELX 41 +#endif +#ifndef R_X86_64_REX_GOTPCRELX +#define R_X86_64_REX_GOTPCRELX 42 +#endif /** * Alignment of raw data of sections in the image file