[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tuple and changes for m68k with -malign-int



Hi Geert,

On Mon, 2025-05-19 at 10:25 +0200, Geert Uytterhoeven wrote:
> On Mon, 19 May 2025 at 10:18, John Paul Adrian Glaubitz
> <glaubitz@physik.fu-berlin.de> wrote:
> > On Mon, 2025-05-19 at 10:03 +0200, Andreas Schwab wrote:
> > > On Mai 19 2025, John Paul Adrian Glaubitz wrote:
> > > 
> > > > Good idea. I will do that. My assumption is that on Linux, GCC developers
> > > > actually just forgot to switch alignment from 2 to 4 bytes with the switch
> > > > to ELF unlike NetBSD.
> > > 
> > > The Linux developers care about backward compatilibity.
> > 
> > That makes no sense though as a.out and ELF binaries are not compatible, are they?
> 
> The syscall ABI is.

Fair enough. But a.out is long gone now and anyone who runs Linux/m68k these days does
that as a hobbyist. I think that the advantages of fixing several dozens of alignment
bugs once and for all hugely outweighs the disadvantage of breaking compatibility with
old binaries.

If I understand correctly, there was an (unintended) ABI break on Linux/s390 as well
and it seems that it was not reverted [1]. Maybe someone involved in this discussion
from back then can comment.

Adrian

> [1] https://lwn.net/Articles/605607/

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: