Skip to content

Commit

Permalink
[efi] Add potentially missing relocation types
Browse files Browse the repository at this point in the history
Add definitions for relocation types that may be missing on older
versions of the host system's elf.h.

Signed-off-by: Michael Brown <[email protected]>
  • Loading branch information
mcb30 committed Dec 21, 2023
1 parent 15f6162 commit 47f6298
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/elf2efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47f6298

Please sign in to comment.