summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/prefix
diff options
context:
space:
mode:
authorMichael Brown2022-01-11 16:27:14 +0100
committerMichael Brown2022-01-11 16:27:14 +0100
commit91c77e2592f5b0e1098d3f341827d7e6925e4a85 (patch)
treedbd4df33a1caaa0a98e51ca9078ae538a30c55d1 /src/arch/x86/prefix
parent[settings] Support formatting UUIDs as little-endian GUIDs (diff)
downloadipxe-91c77e2592f5b0e1098d3f341827d7e6925e4a85.tar.gz
ipxe-91c77e2592f5b0e1098d3f341827d7e6925e4a85.tar.xz
ipxe-91c77e2592f5b0e1098d3f341827d7e6925e4a85.zip
[efi] Do not align VirtualSize for .reloc and .debug sections
As of commit f1e9e2b ("[efi] Align EFI image sections by page size"), the VirtualSize fields for the .reloc and .debug sections have been rounded up to the (4kB) image alignment. This breaks the PE relocation logic in the UEFI shim, which requires the VirtualSize field to exactly match the size as recorded in the data directory. Fix by setting the VirtualSize field to the unaligned size of the section, as is already done for normal PE sections (i.e. those other than .reloc and .debug). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/prefix')
0 files changed, 0 insertions, 0 deletions