+1
−1
Loading
`qemuArch` returned "aarch64" for both LE and BE, causing binfmt to register `qemu-aarch64` for `aarch64_be` binaries. QEMU ships separate `qemu-aarch64` and `qemu-aarch64_be` binaries, so the wrong interpreter was used, failing with "Invalid ELF image for this architecture". Since QEMU distinguishes endianness in the binary name, this adds the "_be" suffix via `isBigEndian`, which is similar to the approach MIPS uses a few lines below.