summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/elf2efi.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/elf2efi.py b/tools/elf2efi.py
index 54f64fa53c..5411a02341 100755
--- a/tools/elf2efi.py
+++ b/tools/elf2efi.py
@@ -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