EliaGeretto wrote: @MaskRay @fmayer This PR supersedes #183275. It groups together the changes to lld and to the clang driver. In addition, it addresses the comment regarding the use of `-ld.c` test files. https://github.com/llvm/llvm-project/pull/187055