> 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? Good call, that was indeed missing. Confirmed that clearing that data also fixes the issue.