[efi] Write out PE header only after writing sections

Hybrid bzImage and UEFI binaries (such as wimboot) include a bzImage
header within a section starting at offset zero, with the PE header
effectively occupying unused space within this section.

Allow for this by deferring the writing of the PE header until after
the output sections have been written.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 file changed
tree: 5d1706f9343bed68cf44ca2622a5b074fd9ab9a2
  1. .github/
  2. contrib/
  3. src/
  4. COPYING
  5. COPYING.GPLv2
  6. COPYING.UBDL
  7. README