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

Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k



On Thu, 5 Jun 2025 at 12:33, Martin Husemann <martin@duskware.de> 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 -- geert@linux-m68k.org

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


Reply to: