Index: lld/trunk/ELF/LinkerScript.cpp =================================================================== --- lld/trunk/ELF/LinkerScript.cpp +++ lld/trunk/ELF/LinkerScript.cpp @@ -179,6 +179,8 @@ Driver->addFile(Saver.save(Config->Sysroot + "/" + S.substr(1))); } else if (S.startswith("-l")) { Driver->addFile(searchLibrary(S.substr(2))); + } else if (sys::fs::exists(S)) { + Driver->addFile(S); } else { std::string Path = findFromSearchPaths(S); if (Path.empty())