summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/linkerscript.s
diff options
context:
space:
mode:
authorAlexander Richardson <arichardson.kde@gmail.com>2017-11-20 15:43:20 +0000
committerAlexander Richardson <arichardson.kde@gmail.com>2017-11-20 15:43:20 +0000
commit1de78471f524e79dc77ecacbe09fada47bfd7418 (patch)
treeb9fdcb325bdaf2133ff38f4a93cacd40666101af /lld/test/ELF/linkerscript/linkerscript.s
parent24194525057b73ecc1d78b7853ce1bbd6ceaf9c2 (diff)
downloadbcm5719-llvm-1de78471f524e79dc77ecacbe09fada47bfd7418.tar.gz
bcm5719-llvm-1de78471f524e79dc77ecacbe09fada47bfd7418.zip
[ELF] Fall back to search dirs for linker scripts specified with -T
Summary: This matches the behaviour of ld.bfd: https://sourceware.org/binutils/docs/ld/Options.html#Options If scriptfile does not exist in the current directory, ld looks for it in the directories specified by any preceding '-L' options. Multiple '-T' options accumulate. Reviewers: ruiu, grimar Reviewed By: ruiu, grimar Subscribers: emaste, llvm-commits Differential Revision: https://reviews.llvm.org/D40129 llvm-svn: 318655
Diffstat (limited to 'lld/test/ELF/linkerscript/linkerscript.s')
-rw-r--r--lld/test/ELF/linkerscript/linkerscript.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/linkerscript/linkerscript.s b/lld/test/ELF/linkerscript/linkerscript.s
index 7c8a5cbed2c..6a239ea57c8 100644
--- a/lld/test/ELF/linkerscript/linkerscript.s
+++ b/lld/test/ELF/linkerscript/linkerscript.s
@@ -37,7 +37,7 @@
# RUN: echo "OUTPUT(\"%t.out\")" > %T/foo.script
# RUN: not ld.lld %t.script > %t.log 2>&1
# RUN: FileCheck -check-prefix=INCLUDE_ERR %s < %t.log
-# INCLUDE_ERR: error: {{.+}}.script:1: cannot open foo.script
+# INCLUDE_ERR: error: {{.+}}.script:1: cannot find linker script foo.script
# INCLUDE_ERR-NEXT: INCLUDE "foo.script"
# RUN: ld.lld -L %T %t.script %t
OpenPOWER on IntegriCloud