This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: support for FreeBSD and GNU/FreeBSD
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Bruno Haible <haible at ilog dot fr>
- Cc: binutils at sources dot redhat dot com, David O'Brien <obrien at FreeBSD dot org>
- Date: Sun, 7 Jul 2002 21:52:13 +0930
- Subject: Re: support for FreeBSD and GNU/FreeBSD
- References: <15652.36348.194543.119092@honolulu.ilog.fr>
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