1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

elf2efi: remove outdated comment mentioning linker script

Follow-up for 142f0c61a37091e233b80f02375cff1114dab24a

(cherry picked from commit ced3e6bc0e4accb2dbef26e419ad850ca783b490)
(cherry picked from commit c5952482f9faf34249da13f5b02039f7ee943727)
This commit is contained in:
Mike Yuan 2023-12-10 19:05:27 +08:00 committed by Luca Boccassi
parent 089d2b826e
commit 0999d6b758

View File

@ -450,7 +450,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