Shared libraries and visibility
Andrew Haley
aph@redhat.com
Tue Nov 19 15:15:00 GMT 2013
On 11/19/2013 01:25 PM, Martin Richtarsky wrote:
> 2) The -Bsymbolic ld flag also looks very promising:
> "When creating a shared library, bind references to global symbols to
> the
> definition within the shared library, if any."
-Bsymbolic is very dangerous. It means that the program has multiple
definitions of the same symbol, so initialization code can initialize
the wrong data. -Bsymbolic-functions is much safer, but even then
it's risky. Things will break.
Andrew.
More information about the Gcc-help
mailing list