<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>The N_OSO stabs entries are indeed added by the linker (<a href="https://wiki.dwarfstd.org/Apple's_%22Lazy%22_DWARF_Scheme.md">https://wiki.dwarfstd.org/Apple's_%22Lazy%22_DWARF_Scheme.md</a>). </div><div>Having done a quick scan through the linker sources I was not able to pinpoint the place where this path concatenation is happening.</div><div><br></div><div>> FWIW, I have not seen a similar problem with Apple's "cc", which is clang compiler. It does not generate the working directory in the N_SO stabs:</div><div><br class="Apple-interchange-newline"></div><div>Assuming that that is indeed the root cause, it <i>might</i> be best to modify gfortran to no longer emit N_SO stabs entries in the object file.</div><div><br></div><div>Adrian</div><div><br></div><div><br></div></body></html>