summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/DriverUtils.cpp2
-rw-r--r--lld/test/ELF/reproduce.s3
2 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp
index 03072a5733e..f6ed1d555ed 100644
--- a/lld/ELF/DriverUtils.cpp
+++ b/lld/ELF/DriverUtils.cpp
@@ -139,7 +139,7 @@ static std::string quote(StringRef S) {
static std::string rewritePath(StringRef S) {
if (fs::exists(S))
- return getDestPath(S);
+ return relativeToRoot(S);
return S;
}
diff --git a/lld/test/ELF/reproduce.s b/lld/test/ELF/reproduce.s
index b86bfe0de09..d7472ddbe97 100644
--- a/lld/test/ELF/reproduce.s
+++ b/lld/test/ELF/reproduce.s
@@ -9,7 +9,8 @@
# RUN: FileCheck %s --check-prefix=RSP < repro/response.txt
# RSP: {{^}}--hash-style gnu{{$}}
-# RSP-NEXT: {{.*}}foo.o
+# RSP-NOT: repro/
+# RSP-NEXT: /foo.o
# RSP-NEXT: -o bar
# RSP-NEXT: -shared
# RSP-NEXT: --as-needed
OpenPOWER on IntegriCloud