http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43581
--- Comment #7 from vincenzo Innocente
2012-06-15 07:46:47 UTC ---
This problem was most probably due to binutils as I can reproduce it even with
4.8 using
GNU gold (GNU Binutils 2.21.51.20110514) 1.11
while looks fixed with
GNU gold (GNU Binuti
--- Comment #6 from rwild at gcc dot gnu dot org 2010-03-31 18:49 ---
Here's the analogous test case from Libtool for dlopen'ed modules. Also passes
when -fuse-linker-plugin is removed from the link line for module.so.
CXX=g++
CXXFLAGS='-O2 -flto'
LDFLAGS='-fuse-linker-plugin'
cat >mo
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-31 09:22 ---
It is enough to build the shared library with -flto -fuse-linker-plugin.
You then get
/tmp> LD_LIBRARY_PATH=. ./main
terminate called after throwing an instance of 'libexc'
what(): exception in library
Aborted
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-03-30 20:29 ---
So this cannot be a regression.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added