On Mon, 10 Jun 2024 at 20:04, Nicholas Bishop <nicholasbishop@xxxxxxxxxx> wrote: > > > Which platform/EFI implementation are you using? > > Testing on an Intel Compute Stick (Cherry Trail) and QEMU+OVMF. (I'm > using an older build of OVMF because recent releases fail on ia32 with > an exception early in boot for me.) I'm using a custom bootloader that > invokes the compat entry point. > Interesting. Does your custom bootloader implement its own PE loader, and if so, does it correctly clear those parts of the PE/COFF sections that are not covered by data in the file? > > In any case, it seems your analysis is correct, and no BSS clearing is > > performed on the compat entry point boot path. So please check whether > > something like the below fixes your issue as well. > > Confirmed that this boots successfully on both the test device and VM. Thanks. I'll have a patch out right away.