diff options
author | Fangrui Song <maskray@google.com> | 2018-07-25 21:53:18 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-07-25 21:53:18 +0000 |
commit | c60f85d0731f45a8bcb6f6c14409a33cf88d15af (patch) | |
tree | da2c59dcf917ddfb760665dc2730ad45da525084 /lld/ELF/DriverUtils.cpp | |
parent | 33b4c8a18f0d3d8a837b5f03c815935472963968 (diff) | |
download | bcm5719-llvm-c60f85d0731f45a8bcb6f6c14409a33cf88d15af.tar.gz bcm5719-llvm-c60f85d0731f45a8bcb6f6c14409a33cf88d15af.zip |
[ELF] Use search paths for --version-script=
Summary: This behavior matches ld.bfd -Ld --version-script=t.script a.o
Reviewers: ruiu, espindola
Subscribers: emaste, arichardson, llvm-commits
Differential Revision: https://reviews.llvm.org/D49820
llvm-svn: 337969
Diffstat (limited to 'lld/ELF/DriverUtils.cpp')
-rw-r--r-- | lld/ELF/DriverUtils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 35e3ba19f5b..698e06edfe6 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -227,10 +227,10 @@ Optional<std::string> elf::searchLibrary(StringRef Name) { return None; } -// If a linker script doesn't exist in the current directory, we also look for -// the script in the '-L' search paths. This matches the behaviour of both '-T' -// and linker script INPUT() directives in ld.bfd. -Optional<std::string> elf::searchLinkerScript(StringRef Name) { +// If a linker/version script doesn't exist in the current directory, we also +// look for the script in the '-L' search paths. This matches the behaviour of +// '-T', --version-script=, and linker script INPUT() command in ld.bfd. +Optional<std::string> elf::searchScript(StringRef Name) { if (fs::exists(Name)) return Name.str(); return findFromSearchPaths(Name); |