summaryrefslogtreecommitdiffstats
path: root/src/interface/efi/efi_file.c
diff options
context:
space:
mode:
authorMichael Brown2023-04-10 17:44:36 +0200
committerMichael Brown2023-04-10 17:51:49 +0200
commit1e4c3789e95393a1b87a0b2147bed82a87576673 (patch)
tree4b72fe41af32adf6630a659bb14dacea1eab6617 /src/interface/efi/efi_file.c
parent[efi] Remove redundant zero padding in PE header (diff)
downloadipxe-1e4c3789e95393a1b87a0b2147bed82a87576673.tar.gz
ipxe-1e4c3789e95393a1b87a0b2147bed82a87576673.tar.xz
ipxe-1e4c3789e95393a1b87a0b2147bed82a87576673.zip
[efi] Shrink size of data directory in PE header
Hybrid bzImage and UEFI binaries (such as wimboot) require the PE header to be kept as small as possible, since the bzImage header starts at a fixed offset 0x1f1. The EFI_IMAGE_OPTIONAL_HEADER structures in PeImage.h define an optional header containing 16 data directory entries, of which the last eight are unused in binaries that we create. Shrink the data directory to contain only the first eight entries, to minimise the overall size of the PE header. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_file.c')
0 files changed, 0 insertions, 0 deletions