summaryrefslogtreecommitdiff
path: root/gnuefi/crt0-efi-ia64.S
diff options
context:
space:
mode:
authorMarvin Häuser <8659494+mhaeuser@users.noreply.github.com>2021-04-06 22:35:03 +0200
committerMarvin Häuser <8659494+mhaeuser@users.noreply.github.com>2021-04-06 22:35:03 +0200
commitb916d1e54eae808f3ed8b3e80a35796f6f216c44 (patch)
tree6a32e697af450dd1f4d02eda671989bf1e5c345c /gnuefi/crt0-efi-ia64.S
parent3676bc353c83c2f9f141ae5c914a45a5e096f38d (diff)
downloadgnu-efi-b916d1e54eae808f3ed8b3e80a35796f6f216c44.tar.gz
Fix dummy relocation block alignment
As per the PE format specification, relocation blocks must be aligned on 32-bit boundaries. Fix the dummy relocations to obey the alignment constraints.
Diffstat (limited to 'gnuefi/crt0-efi-ia64.S')
-rw-r--r--gnuefi/crt0-efi-ia64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuefi/crt0-efi-ia64.S b/gnuefi/crt0-efi-ia64.S
index 40c3c83..cd00b8d 100644
--- a/gnuefi/crt0-efi-ia64.S
+++ b/gnuefi/crt0-efi-ia64.S
@@ -82,6 +82,6 @@ _start_plabel:
.section .reloc, "a"
data4 _start_plabel // Page RVA
- data4 12 // Block Size (2*4+2*2)
+ data4 12 // Block Size (2*4+2*2), must be aligned by 32 Bits
data2 (IMAGE_REL_BASED_DIR64<<12) + 0 // reloc for plabel's entry point
data2 (IMAGE_REL_BASED_DIR64<<12) + 8 // reloc for plabel's global pointer