Re: [PATCH] linux-user/elfload.c: keep GNU0_MAGIC in host byte order

2024-10-02 Thread Michael Tokarev
02.10.2024 16:51, Laurent Vivier wrote: Le 02/10/2024 à 11:11, Michael Tokarev a écrit : Other places of this file operate in host byte order.  Only this constant is defined as little-endian.  This does not work, for example, on s390x host when running an arm64 binary:   qemu-arm64: /usr/bin/bu

Re: [PATCH] linux-user/elfload.c: keep GNU0_MAGIC in host byte order

2024-10-02 Thread Laurent Vivier
Le 02/10/2024 à 11:11, Michael Tokarev a écrit : Other places of this file operate in host byte order. Only this constant is defined as little-endian. This does not work, for example, on s390x host when running an arm64 binary: qemu-arm64: /usr/bin/busybox: Invalid note in PT_GNU_PROPERTY T

[PATCH] linux-user/elfload.c: keep GNU0_MAGIC in host byte order

2024-10-02 Thread Michael Tokarev
Other places of this file operate in host byte order. Only this constant is defined as little-endian. This does not work, for example, on s390x host when running an arm64 binary: qemu-arm64: /usr/bin/busybox: Invalid note in PT_GNU_PROPERTY This change is tested on all combinations of host/gue