]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Mark PE .reloc and .debug sections as discardable
authorMarvin Häuser <mhaeuser@posteo.de>
Mon, 5 Apr 2021 14:45:07 +0000 (16:45 +0200)
committerMichael Brown <mcb30@ipxe.org>
Sat, 10 Apr 2021 13:13:05 +0000 (14:13 +0100)
commit94245624e449d4d65223c00055be3d7ea04983f9
tree08a90a6151b28f9a55eb3d4b424e42195371a6dc
parentf1e9e2b062fab46a6e3aec1f08d4554dd5dd2b98
[efi] Mark PE .reloc and .debug sections as discardable

After a PE image is fully loaded and relocated, the loader code may
opt to zero discardable sections for security reasons.  This includes
relocation and debug information, as both contain hints about specific
locations within the binary.  Mark both generated sections as
discardable, which follows the PE specification.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
src/util/elf2efi.c