From c5952482f9faf34249da13f5b02039f7ee943727 Mon Sep 17 00:00:00 2001
From: Mike Yuan <me@yhndnzj.com>
Date: Sun, 10 Dec 2023 19:05:27 +0800
Subject: [PATCH 0466/1160] elf2efi: remove outdated comment mentioning linker
script
Follow-up for 142f0c61a37091e233b80f02375cff1114dab24a
(cherry picked from commit ced3e6bc0e4accb2dbef26e419ad850ca783b490)
tools/elf2efi.py | 1 -
1 file changed, 1 deletion(-)
@@ -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
--
2.33.0