3 ms·
Don't miss this in the footnotes: Hilariously, Microsoft's signing tool gets this wrong by also adding the contents of gaps between sections in direct contrave
by sp332 15y ago
Don't miss this in the footnotes:
Hilariously, Microsoft's signing tool gets this wrong by also adding the contents of gaps between sections in direct contravention of their own specification. This is fine for binaries generated by Microsoft's toolchain because they don't have any gaps, but since our binaries do contain gaps[2] and since the standard firmware implementation[3] does implement the specification correctly, any Linux-generated binaries signed with the Microsoft tool fail validation. Go team.
[2] Something that is, as far as we can tell, permitted by the PE-COFF specification
[3] Written by Intel, not Microsoft