https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91239
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at gcc dot gnu.org --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- It seems to work with lld (version 9 and 11) for me: Contents of the .debug_macro section: Offset: 0x0 Version: 4 Offset size: 4 Offset into .debug_line: 0xe8 DW_MACRO_import - offset : 0x23 DW_MACRO_start_file - lineno: 0 filenum: 1 filename: r.cc DW_MACRO_start_file - lineno: 0 filenum: 2 filename: /usr/include/stdc-predef.h DW_MACRO_import - offset : 0x9ed DW_MACRO_end_file DW_MACRO_start_file - lineno: 1 filenum: 3 filename: r.h DW_MACRO_import - offset : 0xa09 DW_MACRO_end_file DW_MACRO_end_file but I also only see section type relocations and obviously those have to work and be redirected to the prevailing comdat group. So - it doesn't reproduce for me with your testcase.