This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Build shared libraries with -Bsymbolic-functions
"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.
In particular I've seen programs which override __cxa_pure_virtual in
order to give a more informative error message.
Ian