mirror of
https://github.com/systemd/systemd
synced 2024-10-01 13:55:20 +00:00
tools/elf2efi: elif→if to make pylint happy
This commit is contained in:
parent
6d03e5523c
commit
125f06dd1c
|
@ -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:
|
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"
|
raise BadSectionError(f"ELF segment {elf_seg['p_type']} is not properly aligned"
|
||||||
f" ({elf_seg['p_align']} != {SECTION_ALIGNMENT})")
|
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
|
relro = elf_seg
|
||||||
|
|
||||||
for elf_s in elf.iter_sections():
|
for elf_s in elf.iter_sections():
|
||||||
|
|
Loading…
Reference in a new issue