<div dir="ltr"><div dir="ltr"><div>Package: grub2</div><div>Severity: wishlist</div><div dir="ltr"><br></div><div>Some arm64 laptops/tablets ship with UEFI firmware that require the code offset to be aligned to EFI_PAGE_SIZE, presumably in order to be able to enforce no-execute settings for the PE/COFF header itself.</div><div dir="ltr"><br></div><div>The following (minimal) patch set sent to grub-devel (and reviewed by me) changes the behaviour accordingly:</div><div dir="ltr"><a href="https://lists.gnu.org/archive/html/grub-devel/2018-12/msg00056.html">https://lists.gnu.org/archive/html/grub-devel/2018-12/msg00056.html</a><br></div><div dir="ltr"><br></div><div>The unfortunate behaviour of trying to run a grub without 4k-aligned code offset is to silently hang immediately.</div><div dir="ltr"><br></div><div>As a reference, a patch performing the same change in behaviour is already merged in EDK2:</div><div><a href="https://github.com/tianocore/edk2/commit/de3c440e8a54c201c527b85da7b89d58486ece4d">https://github.com/tianocore/edk2/commit/de3c440e8a54c201c527b85da7b89d58486ece4d</a><br></div></div></div>