Fix --reproduce for --export-dynamic-symbol.

--export-dynamic-symbol doesn't take path.

llvm-svn: 268273
This commit is contained in:
Rui Ueyama 2016-05-02 18:12:09 +00:00
parent 9a6ea2c256
commit 2664d45267
2 changed files with 6 additions and 3 deletions

View File

@ -173,7 +173,6 @@ void elf::createResponseFile(const llvm::opt::InputArgList &Args) {
break; break;
case OPT_L: case OPT_L:
case OPT_dynamic_list: case OPT_dynamic_list:
case OPT_export_dynamic_symbol:
case OPT_rpath: case OPT_rpath:
case OPT_script: case OPT_script:
case OPT_version_script: case OPT_version_script:

View File

@ -22,13 +22,17 @@
# RUN: diff %t.dir/build2/foo.o repro/%:t.dir/build2/foo.o # RUN: diff %t.dir/build2/foo.o repro/%:t.dir/build2/foo.o
# RUN: touch file # 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: --dynamic-linker "some unusual/path"
# RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt # RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt
# RSP2: "foo bar" # RSP2: "foo bar"
# RSP2-NEXT: -L "foo bar" # RSP2-NEXT: -L "foo bar"
# RSP2-NEXT: -L {{.+}}file # 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" # RSP2-NEXT: --dynamic-linker "some unusual/path"
# RUN: not ld.lld build1/foo.o -o bar -shared --as-needed --reproduce . 2>&1 \ # RUN: not ld.lld build1/foo.o -o bar -shared --as-needed --reproduce . 2>&1 \