https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64612
--- Comment #19 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Created attachment 34573 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34573&action=edit > gcc5-pr64612.patch > > Lightly tested patch to do that (tested just on x86_64-linux). Worked for me. Tested on * Solaris 10/x86 (as/ld and gas/ld; no comdat in ld) * Solaris 10/x86 (gas/gld, comdat) * Solaris 11/x86 (as/ld and gas/ld; comdat in ld) The new comdat_group keyword needs documenting in sourcebuild.texi, though. Thanks. Rainer