This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Build shared libraries with -Bsymbolic-functions


On Wed, Jan 10, 2007 at 07:19:17AM -0800, Ian Lance Taylor wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > With the new linker switches, -Bsymbolic-functions and
> > --dynamic-list-cpp-new, we can improve shared library
> > performance in gcc. This change will build libstdc++.so with
> > -Bsymbolic-functions and --dynamic-list-cpp-new. I can expand it
> > to other libraries.
> 
> To be clear, this will prevent programs from overriding functions
> defined in libstdc++.so which are called by other functions in
> libstdc++.so.  Are we sure this is desirable?  Note in particular that
> libstdc++.so includes several functions defined as extern "C", the
> __cxa functions.

What does C++ standard say?  If standard doesn't say we have to
support it, I don't see there is a problem.

> 
> In particular I've seen programs which override __cxa_pure_virtual in
> order to give a more informative error message.

Can user override those symbols on all platforms?


H.J.


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