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: [new test case jluu@mainsoft.com: Re: Possible linker problem]


   Date: Tue, 14 Mar 2000 14:07:32 -0800
   From: Geoff Keating <geoffk@cygnus.com>

   This should actually simplify 'ld' a bit, because much of the
   special-case handling for -Bsymbolic should probably go away; the
   handling must happen in ld.so instead (hopefully ld.so handles it
   right).

We could do it that way, but it would lose some of the point of having
-Bsymbolic.  I think that most of the time, a -Bsymbolic library wants
efficient access to its variables, and doesn't care about letting
other code refer to them.

-Bsymbolic is not a normal option, and it should not be treated as
such; -Bsymbolic is a special option used to speed up a shared
library.  We shouldn't compromise -Bsymbolic because we have found an
unusual case which it handles incorrectly.

Maybe we should just detect this case and issue a warning.
Particularly since H.J. reports that the Solaris linker doesn't do a
better job.

Ian

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