This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [BC] Link libs with -Bsymbolic
Bryce McKinlay writes:
> 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?
You're right. This is a serious problem.
If we're sure it will work, we should use -Bsymbolic with libgcj
itself.
> 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.
Exactly.
Andrew.