Use the correct name for the relocation type in the EFI image .reloc section.

The coding is the same, but IMAGE_REL_AMD64_ABSOLUTE is used for COFF
relocations, not for base relocations.
This commit is contained in:
Martin Whitaker 2023-01-31 18:06:15 +00:00 committed by Sam Demeulemeester
parent e5d7119abf
commit 2fa2346ae0
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ end_of_headers:
.section ".reloc", "a", @progbits
.long 0 // Page RVA
.long 10 // Block Size (2*4+2)
.word (IMAGE_REL_AMD64_ABSOLUTE<<12) + 0 // reloc 0 -> 0
.word (IMAGE_REL_BASED_ABSOLUTE << 12) + 0 // reloc 0 -> 0
.section ".sbat", "a", @progbits
.incbin "../boot/sbat.csv"

View File

@ -80,7 +80,7 @@
#define IMAGE_SCN_MEM_NOT_PAGED 0x08000000 /* Section is not pageable. */
#define IMAGE_SCN_MEM_SHARED 0x10000000 /* Section is shareable. */
#define IMAGE_REL_AMD64_ABSOLUTE 0x0000
#define IMAGE_REL_BASED_ABSOLUTE 0x0000
/* COMDAT selection codes. */