~roguescholar/ipxe/trunk

  • Committer: Michael Brown
  • Date: 2023-11-27 12:42:58 UTC
  • Revision ID: git-v1:a147245f1a2f92a85a75226ea921acb22322ab4d
[efi] Extend PE header size to cover space up to first section

Hybrid bzImage and UEFI binaries (such as wimboot) may place sections
at explicit offsets within the PE file, as described in commit b30a098
("[efi] Use load memory address as file offset for hybrid binaries").
This can leave a gap after the PE headers that is not covered by any
section.  It is not entirely clear whether or not such gaps are
permitted in binaries submitted for Secure Boot signing.

To minimise potential problems, extend the PE header size to cover any
space before the first explicitly placed section.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
Filename Latest Rev Last Changed Committer Comment Size
..
cloud 5903 3 years ago Michael Brown [cloud] Add utility for importing images to AWS EC Diff
coverity 5389 7 years ago Michael Brown [coverity] Add Coverity user model Add a trivial Diff
errdb 2987 13 years ago Michael Brown [errdb] Add errdb.pl script to build error databas Diff
rom-o-matic 2870 14 years ago Marty Connor [contrib] Add rom-o-matic to contrib Diff
vm 3146 13 years ago Michael Brown [contrib] Add contrib/vm, containing utilities fro Diff
README 2869 14 years ago Marty Connor [contrib] Move most contrib content to a separate 218 bytes Diff Download File