This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How should STB_GNU_UNIQUE binding interact with RTLD_LOCAL ?


> http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01240.html is the earliest
> thing I've found quickly that talks about the rationale. ?If you think the
> rationale is bogus, then you should take it up with Jason. ?Since I'm
> curious, you can CC: me. ?But I don't think libc-alpha needs to hear all
> that discussion. ?We're just supporting what the C++ gurus have said they
> need, and all we need to hear about here is if the consensus of C++ gurus
> changes.

For the case discussed in that email (a common library that two others
both depend on), I think the basic idea is sound. The problem is that
when the two separately-loaded libraries (i.e., the ones that both
depend on the common library) define the same symbol, that symbol is
also shared between the two libraries. That, along with the fact that
some symbols get STB_GNU_UNIQUE binding (e.g., statics in template
instantiations, statics in inlines) and other symbols don't (e.g.,
statics in non-template classes), leads to the issues that we're
seeing.

-cary


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