Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k
John Paul Adrian Glaubitz <[email protected]> Mon, 16 Jun 2025 13:01:58 +0200
| Newsgroups | gmane.os.netbsd.ports.m68k,gmane.linux.debian.ports.68k,gmane.linux.ports.m68k |
|---|---|
| Message-ID | <f869d1238c15875a29f4cdf7569c176ba81fd6c4.camel@physik.fu-berlin.de> |
On Mon, 2025-06-16 at 12:07 +0200, Geert Uytterhoeven wrote: > > I think you need to change the ABI type in the ELF header: > > https://fr.wikipedia.org/wiki/Executable_and_Linkable_Format > > Interesting.... > > Does any system actually use ABI (byte 7) = 3 (Linux)? > All of amd64/arm/arm64/ia64/i386/m68k/microblaze/mips(el)/powerpc/risvc/s390/sh/sparc > seem to use 0 (SYSV). > > #define ELFOSABI_NONE 0 > #define ELFOSABI_LINUX 3 Strictly speaking, a value of 0x00 indicates SysV ABI [1]. But maybe we could use 0x03 for Linux/m68k with 4 bytes alignment. Adrian > [1] https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#ELF_header -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913