https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83838

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
> There are
>
> /* Only recent versions of Solaris 11 ld properly support hidden .gnu.linkonce
>    sections, so don't use them.  */
> #ifndef USE_GLD
> #define USE_HIDDEN_LINKONCE 0
> #endif

If I can figure out when full support for .gnu.linkonce started in
Solaris ld, I can make this dynamic in configure.ac ...

> But GCC generates comdat:
>
>         .section       
> .text.__x86_indirect_thunk,"axG",@progbits,__x86_indirec
> t_thunk,comdat
>         .globl  __x86_indirect_thunk
>         .hidden __x86_indirect_thunk
>         .type   __x86_indirect_thunk, @function
>
> Does Solaris ld support comdat?

... like this one: complete Solaris ld support for comdat started
sometime in the Solaris 11 timeframe, cf. configure.ac (comdat_group).
Solaris 10 did not (at least not in a way that could cope with
everything gcc might generate).

        Rainer

Reply via email to