elf2efi: Fix header size calculation
authorJan Janssen <medhefgo@web.de>
Sun, 30 Jul 2023 18:59:04 +0000 (20:59 +0200)
committerJan Janssen <medhefgo@web.de>
Sun, 30 Jul 2023 19:31:38 +0000 (21:31 +0200)
commitee91e06a5841c30bc7306260528ef407e0ebbab3
treebc3a0231c1843d5a229548653a021866eb5d5f6e
parentda59599d3dc9fb1937ca4b78fd30312c467aabb5
elf2efi: Fix header size calculation

The PE header size calculation failed to take the PE magic and coff
header size into account, which will lead to header truncation if we are
writing only 5 sections.
tools/elf2efi.py