https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70305
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2016-03-24 CC| |ebotcazou at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Example showing where the `-z relax=comdat` flag needed to be applied in the > generated configure files to get a working build. Ultimately this flag > should not be necessary and the compiler should be emitting correct > relocations. This looks like the Solaris linker putting itself in a corner: if it cannot deal with relocations to discarded sections, then it should not discard the sections in the first place! Please report this to Oracle first.