id = 1707 title = "linux-user qemu-x86_64 can't exec a binary on aarch64 or Loongarch." state = "closed" created_at = "2023-06-13T08:47:56.507Z" closed_at = "2023-07-18T07:27:40.605Z" labels = [] url = "https://gitlab.com/qemu-project/qemu/-/issues/1707" host-os = "archlinux, ky10" host-arch = "aarch64 /LoongArch" qemu-version = "8.0.50 fdd0df5340a8ebc8de88078387ebc85c5af7b40f" guest-os = "- OS/kernel version:" guest-arch = "x86" description = """on master branch, we build an simply hello.c with x86_cross gcc. then. run './build/qemu-x86_64 hello', no output.""" reproduce = """1. build an hello.c with x86_64 cross. use --static. 2. build qemu-x86_64 on aarch64 or LoongArch host. 3. run './build/qemu-x86_64 hello'""" additional = """[strace.txt](/uploads/5362e0e9b04ad9a582470faf4a9fcedb/strace.txt) [hello](/uploads/12d9277fa4e853286414f575010a37ac/hello) The following commit causes this problem. commit 86f04735ac2088d5c069c3d1712212ec7428c562 Author: Helge Deller Date: Sun Dec 25 09:23:19 2022 +0100 linux-user: Fix brk() to release pages"""