https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84213
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- So the issue here is that the early debug generated for module_ra_gfdleta.F90 contains relocations to text symbols. That's a no-no. So this is reproducible with just compiling this file with -flto -g, the resulting object file has Relocation section '.rela.gnu.debuglto_.debug_info' at offset 0xd6610 contains 4636 entries: Offset Info Type Sym. Value Sym. Name + Addend ... 0000000004d9 008600000001 R_X86_64_64 0000000000000000 module_ra_gfdleta.eq.1 + 0 0000000004ed 008600000001 R_X86_64_64 0000000000000000 module_ra_gfdleta.eq.1 + 0 ... etc. So reducing a testcase should be possible by grepping readelf -r (it's the only relocation section) for module_ra_gfdleta.eq ... Tryign to reduce.