linux-user: Unable to run ARM binaries on Aarch64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Download a ARM package from https:/
Here tested with: busybox-
$ file busybox.armel
busybox.armel: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[
$ qemu-aarch64 --version
qemu-aarch64 version 2.11.1(Debian 1:2.11+
$ qemu-aarch64 busybox.armel
busybox.armel: Invalid ELF image for this architecture
$ qemu-aarch64 -cpu cortex-a7 busybox.armel
unable to find CPU model 'cortex-a7'
Also reproduced with commit 33d609990621dea
while the aarch64_cpus[] array contains Aarch64 CPUs, the arm_cpus[] array is empty:
$ gdb -q aarch64-
(gdb) p aarch64_cpus
$1 = {{name = 0x1fe4e8 "cortex-a57", initfn = 0x109bc0 <aarch64_
initfn = 0x109868 <aarch64_
(gdb) p arm_cpus
$2 = {{name = 0x0, initfn = 0x0, class_init = 0x0}}
Of course. There's a separate qemu-arm executable for that.