mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 11:56:03 +00:00
arm/linux: Fix ARM Linux header layout
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> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
39cfb3eb5c
commit
a166484483
@ -30,7 +30,7 @@ struct linux_arm_kernel_header {
|
|||||||
grub_uint32_t magic;
|
grub_uint32_t magic;
|
||||||
grub_uint32_t start; /* _start */
|
grub_uint32_t start; /* _start */
|
||||||
grub_uint32_t end; /* _edata */
|
grub_uint32_t end; /* _edata */
|
||||||
grub_uint32_t reserved2[4];
|
grub_uint32_t reserved2[3];
|
||||||
grub_uint32_t hdr_offset;
|
grub_uint32_t hdr_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user