Fix randomly seen problems with linking C++ programs.
authorHasso Tepper <hasso@estpak.ee>
Tue, 14 Jul 2009 16:14:15 +0000 (19:14 +0300)
committerHasso Tepper <hasso@estpak.ee>
Tue, 14 Jul 2009 16:27:08 +0000 (19:27 +0300)
commit7a045c67fcd319271fea59b66b99c5c979293e59
tree8b4f4e0bada6656c4f8d00e950aff54c0b14ad06
parent5aaa1b10c24e15ae1a3701e3f7654aeeb8bf8305
Fix randomly seen problems with linking C++ programs.

Binutils 2.17 supports COMDAT groups and .nsubspa comdat option. It should
fix randomly seen linking errors like:

`.gnu.linkonce.t.something' referenced in section `.gnu.linkonce.r.something'
of some_object: defined in discarded section `.gnu.linkonce.t.something'
of some_object.

Digged-out-by: corecode@
gnu/usr.bin/cc41/cc_prep/dragonfly-native.h