]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Allow for sections to be excluded from the generated PE file
authorMichael Brown <mcb30@ipxe.org>
Mon, 10 Apr 2023 15:55:28 +0000 (16:55 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 10 Apr 2023 16:02:45 +0000 (17:02 +0100)
commitbd13697446e758d5fed6afcba8f3e9883b2e2de7
treee2b2c8a51a7dc6aed4aff4fa6a5d30958bd4bee1
parent9fb28080d97fac1061660befacfad8caaa2bc522
[efi] Allow for sections to be excluded from the generated PE file

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.  This section
should not appear as a named section in the resulting PE file.

Allow for the existence of hidden sections that do not result in a
section header being written to the PE file.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/elf2efi.c