Fix --reproduce for --export-dynamic-symbol.
authorRui Ueyama <ruiu@google.com>
Mon, 2 May 2016 18:12:09 +0000 (18:12 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 2 May 2016 18:12:09 +0000 (18:12 +0000)
--export-dynamic-symbol doesn't take path.

llvm-svn: 268273

lld/ELF/DriverUtils.cpp
lld/test/ELF/reproduce.s

index 7fc31c8..bbcaacc 100644 (file)
@@ -173,7 +173,6 @@ void elf::createResponseFile(const llvm::opt::InputArgList &Args) {
       break;
     case OPT_L:
     case OPT_dynamic_list:
-    case OPT_export_dynamic_symbol:
     case OPT_rpath:
     case OPT_script:
     case OPT_version_script:
index 66c5c52..b3014a7 100644 (file)
 # RUN: diff %t.dir/build2/foo.o repro/%:t.dir/build2/foo.o
 
 # RUN: touch file
-# RUN: not ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile -version-script file \
+# RUN: not ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile \
+# RUN:   --dynamic-list file -rpath file --script file --version-script file \
 # RUN:   --dynamic-linker "some unusual/path"
 # RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt
 # RSP2:      "foo bar"
 # RSP2-NEXT: -L "foo bar"
 # RSP2-NEXT: -L {{.+}}file
-# RSP2-NEXT: -version-script {{.+}}file
+# RSP2-NEXT: --dynamic-list {{.+}}file
+# RSP2-NEXT: -rpath {{.+}}file
+# RSP2-NEXT: --script {{.+}}file
+# RSP2-NEXT: --version-script {{.+}}file
 # RSP2-NEXT: --dynamic-linker "some unusual/path"
 
 # RUN: not ld.lld build1/foo.o -o bar -shared --as-needed --reproduce . 2>&1 \