Re: [PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries

2023-07-24 Thread Helge Deller
On 7/21/23 17:14, Michael Tokarev wrote: 19.07.2023 18:52, Helge Deller wrote: qemu-user crashes immediately when running static binaries on the armhf architecture. The problem is the memory layout where the executable is loaded before the interpreter library, in which case the reserved brk

Re: [PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries

2023-07-22 Thread Michael Tokarev
22.07.2023 00:37, Helge Deller wrote: .. So, this is kinda amusing. This broke arm64, ppc64el and s390x: arm64$ ./qemu-aarch64 /bin/sh -c '/bin/ls -dCFl *[t]* >/dev/null' qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault Note: I run it on native arm64, so

Re: [PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries

2023-07-21 Thread Helge Deller
On 7/21/23 17:14, Michael Tokarev wrote: 19.07.2023 18:52, Helge Deller wrote: qemu-user crashes immediately when running static binaries on the armhf architecture. The problem is the memory layout where the executable is loaded before the interpreter library, in which case the reserved brk

Re: [PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries

2023-07-21 Thread Michael Tokarev
21.07.2023 18:14, Michael Tokarev пишет: 19.07.2023 18:52, Helge Deller wrote: qemu-user crashes immediately when running static binaries on the armhf architecture. The problem is the memory layout where the executable is loaded before the interpreter library, in which case the reserved brk

Re: [PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries

2023-07-21 Thread Michael Tokarev
19.07.2023 18:52, Helge Deller wrote: qemu-user crashes immediately when running static binaries on the armhf architecture. The problem is the memory layout where the executable is loaded before the interpreter library, in which case the reserved brk region clashes with the interpreter code and

[PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries

2023-07-19 Thread Helge Deller
qemu-user crashes immediately when running static binaries on the armhf architecture. The problem is the memory layout where the executable is loaded before the interpreter library, in which case the reserved brk region clashes with the interpreter code and is released before qemu tries to start