mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +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:
parent
089d2b826e
commit
0999d6b758
@ -450,7 +450,6 @@ def write_pe(
|
|||||||
offset = opt.SizeOfHeaders
|
offset = opt.SizeOfHeaders
|
||||||
for pe_s in sorted(sections, key=lambda s: s.VirtualAddress):
|
for pe_s in sorted(sections, key=lambda s: s.VirtualAddress):
|
||||||
if pe_s.VirtualAddress < opt.SizeOfHeaders:
|
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.")
|
raise RuntimeError(f"Section {pe_s.Name} overlapping PE headers.")
|
||||||
|
|
||||||
pe_s.PointerToRawData = offset
|
pe_s.PointerToRawData = offset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user