Skip to content

qemu-aarch64_be 9.1.0 fails to run any Linux programs due to unreachable in gdb_find_static_feature()

Host environment

  • Operating system: Ubuntu 23.10
  • OS/kernel version: 6.5.0-44-generic
  • Architecture: x86_64
  • QEMU flavor: qemu-aarch64_be
  • QEMU version: 9.1.0
  • QEMU command line: See below

Description of problem

❯ cat empty.c
void _start() {}
❯ clang empty.c -target aarch64_be-linux -nostdlib -fuse-ld=lld
❯ qemu-aarch64_be ./a.out
**
ERROR:../gdbstub/gdbstub.c:493:gdb_find_static_feature: code should not be reached
Bail out! ERROR:../gdbstub/gdbstub.c:493:gdb_find_static_feature: code should not be reached
fish: Job 1, 'qemu-aarch64_be ./a.out' terminated by signal SIGABRT (Abort)
Edited by Alex Rønne Petersen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information