This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Advice on the prefered way to brand ELF binaries as needed on FreeBSD
On Wed, Apr 12, 2000 at 03:53:47PM +1000, Alan Modra wrote:
> On Tue, 11 Apr 2000, David O'Brien wrote:
>
> > Is there an easy to use symbol that tells what the target arch is? I
> > could #ifdef on that instead.
>
> You could add some autoconf magic to bfd/acinclude.m4. Try something
> similar to BFD_BINARY_FOPEN, but testing $target for freebsd. This will
> get you a defined macro in config.h that you can test elsewhere. It may
> not be a bad idea to move ELF_DYNAMIC_INTERPRETER into there too.
>
Please don't do that, at least not in the official source.. The target
is the processor ABI, not the OS ABI.
H.J.