bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15516] GNU LD is confused when linker plugin turns COMDAT symbol


From: marxin.liska at gmail dot com
Subject: [Bug ld/15516] GNU LD is confused when linker plugin turns COMDAT symbol into static w/o renaming.
Date: Sun, 02 Jun 2013 17:11:49 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15516



--- Comment #11 from Martin Liška <marxin.liska at gmail dot com> ---

So the bug is really present in binutils trunk (May 24 2013).



ld --version:

GNU ld (GNU Binutils) 2.23.52.20130524



gcc --version:

gcc (GCC) 4.9.0 20130517 (experimental)



Compilation error:

S=/home/marxin/Programming/libreoffice-lto-test && O=$S/solver/unxlngx6
.pro &&

W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/LinkTarget/Executable/ && g++  
-flto

-fno-fat-lto-objects -fuse-linker-plugin -O2   -Wl,-z,origin

'-Wl,-rpath,$ORIGIN/../lib:$ORIGIN' -Wl,-rpath-link,$O/lib -Wl,-z,defs 

-Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc -L$O/lib  -Wl,--hash-style
=gnu 

-Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo

-Wl,-Bsymbolic-functions  -Wl,-O1 -Wl,-S 

$W/CxxObject/i18npool/source/localedata/LocaleNode.o

$W/CxxObject/i18npool/source/localedata/filewriter.o

$W/CxxObject/i18npool/source/localedata/saxparser.o     -Wl,--start-group
 

-Wl,--end-group -Wl,--no-as-needed   -luno_cppu -luno_cppuhelpergcc3 -luno_
sal

-o $W/LinkTarget/Executable/saxparser

/home/marxin/Programming/libreoffice-lto-test/workdir/unxlngx6.pro/CxxObjec
t/i18npool/source/localedata/saxparser.o

(symbol from plugin): undefined reference to `typeinfo for

com::sun::star::uno::Exception'

/home/marxin/Programming/libreoffice-lto-test/workdir/unxlngx6.pro/CxxObjec
t/i18npool/source/localedata/saxparser.o

(symbol from plugin): undefined reference to `typeinfo name for

com::sun::star::uno::RuntimeException'

/home/marxin/Programming/libreoffice-lto-test/workdir/unxlngx6.pro/CxxObjec
t/i18npool/source/localedata/saxparser.o

(symbol from plugin): undefined reference to `typeinfo for

com::sun::star::uno::RuntimeException'

/home/marxin/Programming/libreoffice-lto-test/workdir/unxlngx6.pro/CxxObjec
t/i18npool/source/localedata/saxparser.o

(symbol from plugin): undefined reference to `typeinfo name for

com::sun::star::uno::Exception'

collect2: error: ld returned 1 exit status



All 3 object files are added as an attachment.



Thanks,

Martin



-- 

You are receiving this mail because:

You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]