elf2efi: fix a typo

This commit is contained in:
Mike Yuan 2023-09-22 01:06:55 +08:00 committed by Yu Watanabe
parent 8ae3c292e3
commit 1365355d14

View File

@ -482,7 +482,7 @@ def elf2efi(args: argparse.Namespace):
"EM_X86_64": 0x8664,
}.get(elf["e_machine"])
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()
opt = PeOptionalHeader32() if elf.elfclass == 32 else PeOptionalHeader32Plus()