https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91478
--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 46745 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46745&action=edit Patch candidate Ok, now I'm more understanding the code in simple_object_elf_copy_lto_debug_sections and I implemented the suggested approach. @John: Can you please test it?