On Wed, 2025-09-10 at 08:52 +0200, Andreas Schwab wrote:
On Sep 10 2025, Finn Thain wrote:
Linux is probably the only non-trivial program that could be feasibly rebuilt with -malign-int without ill effect (i.e. without breaking userland)
No, you can't. It would change the layout of basic user-level structures, breaking the syscall ABI.
Not if you rebuild the whole userspace as well.
FWIW, the Gentoo people already created a chroot with 32-bit alignmment:
https://dev.gentoo.org/~dilfridge/m68k/
It works with qemu-user. I haven't tried it on qemu-system with a 32-bit- aligned kernel yet.
Adrian