https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109805
--- Comment #12 from Sergio Durigan Junior <sergiodj at sergiodj dot net> --- Sorry, I have been busy with other things, but I'm paying attention to the developments here. I still have to test the workaround I suggested (passing -fdebug-prefix-map to LDFLAGS) more broadly, because I think I may have found at least one scenario where it doesn't work. Something else that's puzzling me is the fact that I don't see this behaviour everywhere; some packages do have the expected DW_AT_comp_dir even after being compiled with LTO enabled.