[Bug debug/99618] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 17 14:29:13 GMT 2021


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

--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Richard Biener from comment #15)
> So as expected all of the linkers are happy with
> 
>         .section        .gnu.debuglto_.debug_macro,"e",@progbits
> .Ldebug_macro0:
>         .long   debug_macro2
>         .section        .gnu.debuglto_.debug_macro,"eG",@progbits,wm4,comdat
>         .globl debug_macro2
> debug_macro2:
>         .value  0x4

You can put the first .gnu.debuglto_.debug_macro in a comdat group section.


More information about the Gcc-bugs mailing list