mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2026-08-05 02:43:18 -05:00
A recent change (commit e41655885) to the Fedora implementation of the GRUB "linux" command for EFI boot means it now loads the entire image (including the header) at the preferred load address instead of just loading the code section. This means the code section is no longer 4KB aligned. In our image, the code section contains the combined .text and .data sections, so this means the .data section is also no longer 4kB aligned, which results in a GPF when the startup code loads the new page directory address into CR3. Work around this issue by extending the header size to force the code to start on a 4KB boundary.