This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: support for FreeBSD and GNU/FreeBSD


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]