elf2efi: remove outdated comment mentioning linker script

Follow-up for 142f0c61a3
This commit is contained in:
Mike Yuan 2023-12-10 19:05:27 +08:00 committed by Luca Boccassi
parent fca212b022
commit ced3e6bc0e

View File

@ -552,7 +552,6 @@ def write_pe(
offset = opt.SizeOfHeaders
for pe_s in sorted(sections, key=lambda s: s.VirtualAddress):
if pe_s.VirtualAddress < opt.SizeOfHeaders:
# Linker script should make sure this does not happen.
raise RuntimeError(f"Section {pe_s.Name} overlapping PE headers.")
pe_s.PointerToRawData = offset