http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52950
Bug #: 52950
Summary: --enable-symvers=gnu-versioned-namespace exports
symbol twice.
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: [email protected]
ReportedBy: [email protected]
for the cross gcc build, the libstdc++.so.7 export symbols twice.
with and without versioning, e.g.:
$ readelf -sW (cross).../libstdc++.so.7 |grep Znwm
922: 0000000000075610 144 FUNC GLOBAL DEFAULT 12 _Znwm@@GLIBCXX_7.0
2742: 00000000000756a0 120 FUNC GLOBAL DEFAULT 12
_ZnwmRKSt9nothrow_t@@GLIBCXX_7.0
1170: 00000000000756a0 120 FUNC GLOBAL DEFAULT 12 _ZnwmRKSt9nothrow_t
1171: 0000000000075610 144 FUNC GLOBAL DEFAULT 12 _Znwm
the native gcc build exports symbols correctly.
$ readelf -sW /usr/lib64/libstdc++.so.7.0.0|grep Znwm
332: 0000000000069820 120 FUNC GLOBAL DEFAULT 12
_ZnwmRKSt9nothrow_t@@GLIBCXX_7.0
3124: 0000000000069790 144 FUNC GLOBAL DEFAULT 12 _Znwm@@GLIBCXX_7.0
$ (cross) x86_64-gnu-linux-g++ -v
Using built-in specs.
COLLECT_GCC=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux/bin/x86_64-gnu-linux-g++
COLLECT_LTO_WRAPPER=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux/lib64/gcc/x86_64-gnu-linux/4.7.1/lto-wrapper
Target: x86_64-gnu-linux
Configured with: ../configure --target=x86_64-gnu-linux --with-arch=x86-64
--prefix=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux
--with-sysroot=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux
--libdir=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux/lib64
--libexecdir=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux/lib64
--with-slibdir=/remote/src/home/builder/toolchain.svn/trunk/sysroot/x86_64-gnu-linux/lib64
--with-gmp-include=/remote/src/home/builder/toolchain.svn/trunk/x86_64-gnu-linux/gcc-math-runtime/include
--with-gmp-lib=/remote/src/home/builder/toolchain.svn/trunk/x86_64-gnu-linux/gcc-math-runtime/lib
--with-mpfr-include=/remote/src/home/builder/toolchain.svn/trunk/x86_64-gnu-linux/gcc-math-runtime/include
--with-mpfr-lib=/remote/src/home/builder/toolchain.svn/trunk/x86_64-gnu-linux/gcc-math-runtime/lib
--with-mpc-include=/remote/src/home/builder/toolchain.svn/trunk/x86_64-gnu-linux/gcc-math-runtime/include
--with-mpc-lib=/remote/src/home/builder/toolchain.svn/trunk/x86_64-gnu-linux/gcc-math-runtime/lib
--disable-multilib --enable-nls --disable-libgomp --disable-libmudflap
--disable-libssp --disable-libquadmath --disable-libitm --enable-tls
--enable-libstdcxx-allocator=new --enable-extern-template
--enable-libstdcxx-time=rt --enable-libstdcxx-threads --disable-libstdcxx-pch
--disable-lto --disable-plugin --enable-c99 --enable-long-long
--enable-linux-futex --enable-threads=posix --enable-shared --with-pic
--enable-gold --enable-__cxa_atexit --enable-languages=c,c++
--enable-checking=release --enable-symvers=gnu-versioned-namespace
--with-long-double-128 --disable-cld --disable-bootstrap
Thread model: posix
gcc version 4.7.1 20120406 (prerelease) (GCC)