FWIW, and maybe a heads-up, but:
Current qemu (git master) can't be built on debian stable (bookworm) on arm64
statically, when capstone is used.
./configure --static --enable-capstone --target-list=aarch64-linux-user
this fails at link stage:
/usr/lib/gcc/aarch64-linux-gnu/12/../../../aarch64-linux-gnu/libc.a(setlocale.o):
in function `_nl_locale_subfreeres':
(__libc_freeres_fn+0x124): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `_nl_C_LC_COLLATE' defined in .data.rel.ro.local
section in /usr/lib/gcc/aarch64-linux-gnu/12/../../../aarch64-linux-gnu/libc.a(C-collate.o)
/usr/bin/ld: (__libc_freeres_fn+0x124): warning: too many GOT entries for
-fpic, please recompile with -fPIC
collect2: error: ld returned 1 exit status
Apparently some code/data size has become too large.
Only aarch64 target on aarch64 is affected, so far.
When building with capstone disabled, it fits and hence links
successfully.
I'm disabling capstone on debian build for bookworm-backports on arm64 for
qemu-user.
Thanks,
/mjt