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