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

Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k



On 16/06/2025 13:01, John Paul Adrian Glaubitz wrote:
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


I think an e_flags with a new value like EF_M68K_ABI2 would be more appropriate.

Thanks,
Laurent


Reply to: