[BC] Link libs with -Bsymbolic
Bryce McKinlay
mckinlay@redhat.com
Tue Nov 16 23:40:00 GMT 2004
Andrew Haley wrote:
> > I've been assuming that for 4.0 we would stick pretty closely to
> > what we've done all along and not make changes to how our shared
> > libraries are built or linked (or split into pieces). (In other
> > words, not merge the library splitting patch from the GUI branch.)
> > It is pretty late to consider big changes here, and the indirect
> > dispatch code is new enough that I'd rather not enable it for the
> > core.
>
>If indirect dispatch is to work, all libraries except perhaps libgcj
>itself muct be compiled with -Bsymbolic.
>
>
If libgcj isn't compiled with -Bsymbolic, won't it still be possible for
a libgcj symbol to resolve to another shared object, if the other shared
object contains symbols that conflict? My understanding of -Bsymbolic is
that it will resolve symbols internally where possible, but they will
still be exported and thus valid link targets from other .so's.
Bryce
More information about the Java-patches
mailing list