[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/8] linux/arm: fix ARM Linux header layout
From: |
Ard Biesheuvel |
Subject: |
[PATCH v2 1/8] linux/arm: fix ARM Linux header layout |
Date: |
Sun, 25 Oct 2020 14:49:34 +0100 |
The hdr_offset member of the ARM Linux image header appears at
offset 0x3c, matching the PE/COFF spec's placement of the COFF
header offset in the MS-DOS header. We're currently off by four,
so fix that.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
---
include/grub/arm/linux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/grub/arm/linux.h b/include/grub/arm/linux.h
index 2e98a6689696..bcd5a7eb186e 100644
--- a/include/grub/arm/linux.h
+++ b/include/grub/arm/linux.h
@@ -30,7 +30,7 @@ struct linux_arm_kernel_header {
grub_uint32_t magic;
grub_uint32_t start; /* _start */
grub_uint32_t end; /* _edata */
- grub_uint32_t reserved2[4];
+ grub_uint32_t reserved2[3];
grub_uint32_t hdr_offset;
};
--
2.17.1
- [PATCH v2 0/8] linux: implement LoadFile2 initrd loading, Ard Biesheuvel, 2020/10/25
- [PATCH v2 1/8] linux/arm: fix ARM Linux header layout,
Ard Biesheuvel <=
- [PATCH v2 2/8] loader/linux: permit NULL argument for argv[] in grub_initrd_load(), Ard Biesheuvel, 2020/10/25
- [PATCH v2 3/8] efi: move MS-DOS stub out of generic PE header definition, Ard Biesheuvel, 2020/10/25
- [PATCH v2 4/8] linux/arm: unify ARM/arm64 vs Xen PE/COFF header handling, Ard Biesheuvel, 2020/10/25
- [PATCH v2 5/8] linux/arm: account for COFF headers appearing at unexpected offsets, Ard Biesheuvel, 2020/10/25
- [PATCH v2 6/8] efi: add definition of LoadFile2 protocol, Ard Biesheuvel, 2020/10/25
- [PATCH v2 7/8] efi: implement LoadFile2 initrd loading protocol for Linux, Ard Biesheuvel, 2020/10/25
- [PATCH v2 8/8] linux: ignore FDT unless we need to modify it, Ard Biesheuvel, 2020/10/25