[new test case jluu@mainsoft.com: Re: Possible linker problem]

Ian Lance Taylor ian@zembu.com
Tue Mar 14 15:04:00 GMT 2000


   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


More information about the Binutils mailing list