]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Add potentially missing relocation types
authorMichael Brown <mcb30@ipxe.org>
Thu, 21 Dec 2023 12:29:03 +0000 (12:29 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 21 Dec 2023 12:29:03 +0000 (12:29 +0000)
Add definitions for relocation types that may be missing on older
versions of the host system's elf.h.

This mirrors wimboot commit 47f6298 ("[efi] Add potentially missing
relocation types").

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/elf2efi.c

index 29e4f24aba881e731f1b775d5eb3716af23fcd29..88713b6636f15e2230557e889ebf2dcde84164e6 100644 (file)
 #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
 #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