https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84017
--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot > Uni-Bielefeld.DE> --- [...] > I was reminded of ld's -z relaxreloc option (more on that separately). > While it doesn't help in this case, it probably provides an option to > enable comdat on some versions of Solaris 10 (though certainly not for GCC 8). Just for the record: here's the patch that does this: https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02257.html