support for FreeBSD and GNU/FreeBSD
Alan Modra
amodra@bigpond.net.au
Sun Jul 7 07:36:00 GMT 2002
On Thu, Jul 04, 2002 at 08:03:40PM +0200, Bruno Haible wrote:
>
> + #ifdef NEW_FREEBSD_ABI_LABEL
> + /* Put an ABI label supported by FreeBSD >= 4.1. */
> + i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
> + #else
> + memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
> + #endif
You should be defining OLD_FREEBSD_ABI_LABEL and reversing the test.
Think --enable-targets=all with a non-freebsd main target. You won't
get a macro defined in that case. Which "branding" scheme do you
want to be default, the one somewhat incompatible with the ELF
standard or the one more grossly incompatible? ;)
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list