26.11.2023 12:51, Tj wrote:
Package: qemu-user-static
Version: 1:7.2+dfsg-7+deb12u2
Followup-For: Bug #1053101
After several experiments and using `readelf -l` to check that there is
no INTERP Program Header and testing with
qemu-7.2+dfsg/b/user-static/qemu-aarch64 -d page
sid-aarch64/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1 --verify
sid-aarch64/usr/bin/aarch64-linux-gnu-g++-13
I am reasonably confident that removing --disable-pie is the solution
for this.
The only caveat is the tests are specific to amd64 host and aarch64
target and I cannot test all the other potential combinations for a
regression.
As I mentioned on the IRC, enabling -static-pie, while really fixes this
particular issue, is not a solution, it is a workaround for this particular
platform combination. At the very least, only platforms where -static-pie
works to begin with, are "fixed" this way.
However I've included a debdiff with the proposed change.
https://salsa.debian.org/qemu-team/qemu/-/commit/fff3dfd1dd07a7d5164447936853c04780c14743
fwiw :)
Also as mentioned on IRC, I re-enabled -static-pie in experimental first
(and immediately faced an issue, - it doesn't work on i386, #1056739).
/mjt