mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
elf2efi: fix a typo
This commit is contained in:
parent
8ae3c292e3
commit
1365355d14
|
@ -482,7 +482,7 @@ def elf2efi(args: argparse.Namespace):
|
||||||
"EM_X86_64": 0x8664,
|
"EM_X86_64": 0x8664,
|
||||||
}.get(elf["e_machine"])
|
}.get(elf["e_machine"])
|
||||||
if pe_arch is None:
|
if pe_arch is None:
|
||||||
raise RuntimeError(f"Unuspported ELF arch {elf['e_machine']}")
|
raise RuntimeError(f"Unsupported ELF arch {elf['e_machine']}")
|
||||||
|
|
||||||
coff = PeCoffHeader()
|
coff = PeCoffHeader()
|
||||||
opt = PeOptionalHeader32() if elf.elfclass == 32 else PeOptionalHeader32Plus()
|
opt = PeOptionalHeader32() if elf.elfclass == 32 else PeOptionalHeader32Plus()
|
||||||
|
|
Loading…
Reference in a new issue