Port-m68k archive

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

Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k





Le 16/06/2025 à 11:32, John Paul Adrian Glaubitz a écrit :
On Mon, 2025-06-16 at 11:26 +0200, Laurent Vivier wrote:
binfmt_misc doesn't use the sections to select the interpreter, but the
128 first bytes of the file.

I think you need to change the ABI type in the ELF header:
https://fr.wikipedia.org/wiki/Executable_and_Linkable_Format

How does binfmt_misc handle the various MIPS ABIs then?

It doesn't and it's a problem.

Very interesting. Is there a bug report for that?


It’s not a bug in binfmt_misc. binfmt_misc is simply a loader that picks an interpreter based on a file’s signature.

The problem comes from a poor design choice in MIPS, which chose to use the same ABI type identifier for different ABI variants.

Thanks,
Laurent


Home | Main Index | Thread Index | Old Index