http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49538

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 
2011-06-27 16:12:04 UTC ---
ld.bfd links libkonsoleprivate.so without errors, gold however fails:

Linking CXX shared library ../../lib/libkonsoleprivate.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/ColorScheme.o: requires dynamic R
_X86_64_PC32 reloc against 'QList<QString>::~QList()' which may overflow at
runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/EditProfileDialog.o: requires dyn
amic R_X86_64_PC32 reloc against 'QList<QString>::~QList()' which may overflow
at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/KeyboardTranslator.o: requires dy
namic R_X86_64_PC32 reloc against 'QList<QString>::~QList()' which may overflow
at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/ProcessInfo.o: requires dynamic R
_X86_64_PC32 reloc against 'QList<QString>::~QList()' which may overflow at
runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/Profile.o: requires dynamic R_X86
_64_PC32 reloc against 'QList<QString>::~QList()' which may overflow at
runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/Pty.o: requires dynamic R_X86_64_
PC32 reloc against 'QList<QString>::~QList()' which may overflow at runtime;
recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/Pty.o: requires dynamic R_X86_64_
PC32 reloc against 'QList<QString>::~QList()' which may overflow at runtime;
recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: CMakeFiles/konsoleprivate.dir/SessionManager.o: requires dynami
c R_X86_64_PC32 reloc against 'QList<QString>::~QList()' which may overflow at
runtime; recompile with -fPIC
CMakeFiles/konsoleprivate.dir/ColorScheme.o:ColorScheme.cpp:function
Konsole::ColorSchemeManager::loadAllColorSchemes(): warning: relocation refers
t
o discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/ColorScheme.o:ColorScheme.cpp:function
Konsole::ColorSchemeManager::loadAllColorSchemes(): warning: relocation refers
t
o discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/ColorScheme.o:ColorScheme.cpp:function
Konsole::ColorSchemeManager::loadAllColorSchemes(): warning: relocation refers
t
o discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/ColorScheme.o:ColorScheme.cpp:function
Konsole::ColorSchemeManager::loadAllColorSchemes(): warning: relocation refers
t
o discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/EditProfileDialog.o:EditProfileDialog.cpp:function
Konsole::EditProfileDialog::updateKeyBindingsList(bool): warning: re
location refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/EditProfileDialog.o:EditProfileDialog.cpp:function
Konsole::EditProfileDialog::updateKeyBindingsList(bool): warning: re
location refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/KeyboardTranslator.o:KeyboardTranslator.cpp:function
Konsole::KeyboardTranslatorManager::findTranslators(): warning: re
location refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/ProcessInfo.o:ProcessInfo.cpp:function
Konsole::ProcessInfo::formatCommand(QString const&, QVector<QString> const&,
Kon
sole::ProcessInfo::CommandFormat) const: warning: relocation refers to
discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/ProcessInfo.o:ProcessInfo.cpp:function
Konsole::ProcessInfo::formatShortDir(QString const&) const: warning: relocation 
refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/Profile.o:Profile.cpp:function
Konsole::Profile::namesForProperty(Konsole::Profile::Property): warning:
relocation refe
rs to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/Pty.o:Pty.cpp:function
Konsole::Pty::addEnvironmentVariables(QStringList const&): warning: relocation
refers to discard
ed section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/Pty.o:Pty.cpp:function
Konsole::Pty::start(QString const&, QStringList const&, QStringList const&,
unsigned long, bool,
 QString const&, QString const&): warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/Pty.o:Pty.cpp:function QList<QString>::mid(int,
int) const: warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
CMakeFiles/konsoleprivate.dir/SessionManager.o:SessionManager.cpp:function
Konsole::SessionManager::loadAllProfiles(): warning: relocation refers to 
discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'QList<QString>::~QList()' is not defined locally
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libkonsoleprivate.so] Error 1



With c85c2c3f3bb4e reverted, gold links without any error.

Reply via email to