[PATCH] D49820: [ELF] Use search paths for --version-script=

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 14:48:20 PDT 2018


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/ELF/version-script-in-search-path.s:9
+# RUN: ld.lld -L%T/searchpath --version-script=t.script %t.o -o /dev/null
+# RUN: not ld.lld --version-script=t.script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
+# ERROR: error: cannot find version script
----------------
For safety, you should use `%T/searchpath/%t.script` instead of `%T/searchpath/t.script` because this line can succeed if there's other test that happens to create t.script in the current directory.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D49820





More information about the llvm-commits mailing list