summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-22 15:44:17 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-22 15:44:17 +0100
commit125f06dd1cc2b658e77adf2f31b349052ff12b1e (patch)
treebdae06f07c52a8c26ae8aea481e5d0a313376d66 /tools
parenttools/elf2efi: skip empty .got section and its .relro_padding (diff)
downloadsystemd-125f06dd1cc2b658e77adf2f31b349052ff12b1e.tar.xz
systemd-125f06dd1cc2b658e77adf2f31b349052ff12b1e.zip
tools/elf2efi: elif→if to make pylint happy
Diffstat (limited to 'tools')
-rwxr-xr-xtools/elf2efi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/elf2efi.py b/tools/elf2efi.py
index 2e7ca9f6c4..cb1a284a60 100755
--- a/tools/elf2efi.py
+++ b/tools/elf2efi.py
@@ -268,7 +268,7 @@ def iter_copy_sections(elf: ELFFile) -> typing.Iterator[PeSection]:
if elf_seg["p_type"] == "PT_LOAD" and elf_seg["p_align"] != SECTION_ALIGNMENT:
raise BadSectionError(f"ELF segment {elf_seg['p_type']} is not properly aligned"
f" ({elf_seg['p_align']} != {SECTION_ALIGNMENT})")
- elif elf_seg["p_type"] == "PT_GNU_RELRO":
+ if elf_seg["p_type"] == "PT_GNU_RELRO":
relro = elf_seg
for elf_s in elf.iter_sections():