Support the Sortix operating system

Alan Modra amodra@gmail.com
Mon Nov 4 21:58:24 GMT 2024


On Fri, Nov 01, 2024 at 09:17:17PM +0100, Jonas 'Sortie' Termansen wrote:
> +#undef	ELF_OSABI
> +#define	ELF_OSABI			ELFOSABI_SORTIX

Is there a reason to distinguish Sortix object files from the base
ELFOSABI_NONE?  I'm asking whether a consumer of ELF object files
would misinterpret a Sortix object file if you used ELFOSABI_NONE?
ie. what fields in a Sortix ELF object use values in ranges reserved
for OS specific semantics, or other extensions?  I'll note that some
other x86_64 targets do use OSABI just to label object files, but
that's really not what OSABI was designed for.  It is likely a mistake
to define your own OSABI.

See also bfd code dealing with has_gnu_osabi.

-- 
Alan Modra


More information about the Binutils mailing list