Advice on the prefered way to brand ELF binaries as needed onFreeBSD

Alan Modra alan@linuxcare.com.au
Tue Apr 11 22:54:00 GMT 2000


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.

-- 
Linuxcare.  Support for the Revolution.




More information about the Binutils mailing list