https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99618
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|MOVED |---
Last reconfirmed| |2021-03-17
Status|RESOLVED |REOPENED
Ever confirmed|0 |1
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
This is what GCC generates:
hjl@gnu-cfl-2 pr27590]$ cat bad.s
.section .gnu.debuglto_.debug_macro,"e",@progbits
.Ldebug_macro0:
.long .Ldebug_macro2
.section .gnu.debuglto_.debug_macro,"eG",@progbits,wm4,comdat
.Ldebug_macro2:
.value 0x4
[hjl@gnu-cfl-2 pr27590]$ gcc -c bad.s
[hjl@gnu-cfl-2 pr27590]$ ld -r bad.o bad.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro'
of bad.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4]' of
bad.o
[hjl@gnu-cfl-2 pr27590]$