Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k
Laurent Vivier <[email protected]> Mon, 16 Jun 2025 11:26:47 +0200
| Newsgroups | gmane.os.netbsd.ports.m68k,gmane.linux.debian.ports.68k,gmane.linux.ports.m68k |
|---|---|
| Message-ID | <[email protected]> |
Le 16/06/2025 à 11:15, John Paul Adrian Glaubitz a écrit : > On Mon, 2025-06-16 at 11:10 +0200, Laurent Vivier wrote: >> >> Le 16/06/2025 à 11:00, John Paul Adrian Glaubitz a écrit : >>>> And there will be a problem with binfmt_misc because we can't rely on >>>> the ELF signature to know which qemu-user to run, the one with 2byte >>>> alignment or the one with 4byte alignment? >>> What about the ELF note [1] that David Brownlee suggested? Can these be used? >>> >>> Adrian >>> >>>> [1]https://www.netbsd.org/docs/kernel/elf-notes.html >> >> 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. Thanks, Laurent