http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48818
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011.04.29 10:24:20 Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-29 10:24:20 UTC --- Confirmed. Even with -fvisibility=hidden we have 28: 0000000000000000 17 FUNC WEAK HIDDEN 13 _ZN10TestObjectC2Ev 29: 0000000000000000 17 FUNC WEAK HIDDEN 13 _ZN10TestObjectC1Ev 33: 0000000000000000 46 FUNC WEAK DEFAULT 15 _ZNSt4pairI10TestObje ctPv 37: 0000000000000000 46 FUNC WEAK DEFAULT 15 _ZNSt4pairI10TestObje ctPv You can work around this by linking the shared library with -Bsymbolic to force local symbol resolution.