Skip to content

Commit 3a42d6a

Browse files
committed
boot-qemu.py: Add ppc64 big endian ELFv2 file strings to file_rosetta
This is needed to automatically boot ppc64_guest_defconfig + CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2=y. Add both the pie and non-pie variants, even though it is unlikely that CONFIG_RELOCATABLE will be disabled, as it is selected by a few different options in the defconfigs that this script will typically be booting, but it does not hurt to be proactive. Signed-off-by: Nathan Chancellor <[email protected]>
1 parent eca69b5 commit 3a42d6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

boot-qemu.py

+2
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ def guess_arch(kernel_arg):
707707
'ELF 32-bit LSB executable, MIPS, MIPS32': 'mipsel',
708708
'ELF 32-bit MSB executable, PowerPC': 'ambiguous', # could be ppc32 or ppc32_mac
709709
'ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, Power ELF V1 ABI': 'ppc64',
710+
'ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI': 'ppc64',
711+
'ELF 64-bit MSB pie executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI': 'ppc64',
710712
'ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI': 'ppc64le',
711713
'ELF 64-bit LSB executable, UCB RISC-V': 'riscv',
712714
'ELF 64-bit MSB executable, IBM S/390': 's390',

0 commit comments

Comments
 (0)