This is the mail archive of the binutils@sourceware.cygnus.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]

Re: Advice on the prefered way to brand ELF binaries as needed on FreeBSD


On Tue, Apr 11, 2000 at 11:28:16PM -0700, Ian Lance Taylor wrote:
>    Date: Tue, 11 Apr 2000 21:31:01 -0700
>    From: "David O'Brien" <obrien@FreeBSD.org>
> 
>    On Wed, Apr 12, 2000 at 12:25:15AM -0400, Michael Meissner wrote:
>    > Neither one is acceptable IMHO.  This is because both of them rely on
>    > __FreeBSD__ being defined,
> 
>    Is there an easy to use symbol that tells what the target arch is?  I
>    could #ifdef on that instead.
> 
> Using a #ifdef at all is wrong.  BFD is designed so that it can
> support multiple targets simultaneously.  Rather than a #ifdef based
> on the target, you must add a different target.

I was going to say exactly the same thing, but Ian beat me to it.  Any solution
that does not allow for simultaneous support of FreeBSD, Linux, and System
V.[456...] to be built in the same linker and hosted on each of those systems
is broken.

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

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