diff options
author | Alexander Richardson <arichardson.kde@gmail.com> | 2017-11-20 15:43:20 +0000 |
---|---|---|
committer | Alexander Richardson <arichardson.kde@gmail.com> | 2017-11-20 15:43:20 +0000 |
commit | 1de78471f524e79dc77ecacbe09fada47bfd7418 (patch) | |
tree | b9fdcb325bdaf2133ff38f4a93cacd40666101af /lld/test/ELF/invalid-linkerscript.test | |
parent | 24194525057b73ecc1d78b7853ce1bbd6ceaf9c2 (diff) | |
download | bcm5719-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/invalid-linkerscript.test')
-rw-r--r-- | lld/test/ELF/invalid-linkerscript.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/invalid-linkerscript.test b/lld/test/ELF/invalid-linkerscript.test index 280686eff41..f9fb8478251 100644 --- a/lld/test/ELF/invalid-linkerscript.test +++ b/lld/test/ELF/invalid-linkerscript.test @@ -45,7 +45,7 @@ # RUN: echo "INCLUDE /no/such/file" > %t7 # RUN: not ld.lld %t7 no-such-file 2>&1 | FileCheck -check-prefix=ERR7 %s -# ERR7: cannot open /no/such/file +# ERR7: cannot find linker script /no/such/file # ERR7: cannot open no-such-file: # RUN: echo "OUTPUT_FORMAT(x y z)" > %t8 |