Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k
Geert Uytterhoeven <[email protected]> Fri, 6 Jun 2025 09:01:30 +0200
| Newsgroups | gmane.linux.ports.m68k,gmane.os.netbsd.ports.m68k,gmane.linux.debian.ports.68k |
|---|---|
| Message-ID | <CAMuHMdVtuj6rJ+yAxAQvGwGUqf-iXTFVY28t2EJdqg7+=Atuig@mail.gmail.com> |
On Thu, 5 Jun 2025 at 12:33, Martin Husemann <[email protected]> wrote: > On Thu, Jun 05, 2025 at 10:49:08AM +0200, Anders Magnusson wrote: > > Just curious; does not Linux use the processor-specific flagging in the > > binary that can tell whether it's 16- or 32-bit-aligned (and handle it > > thereafter)? > > > > NetBSD changed VAX from 1k to 4k pages quite some time ago, and to be able > > to use both we added a new id for 4k pages. > > Or add an ELF note to all new binaries - we do that on sparc64 to mark > the compiler memory model used and give all binaries w/o the note > (or a note that it is using "medlow") a different VA memory layout (to > keep shared libs in range of the instructions used there, but defeating > most of ASLR). Op MIPS N32 (EF_MIPS_ABI2), which also uses different syscall numbers. Then the kernel has to take care of the translation. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds