diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 7fc31c8e657b..bbcaacce1b91 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -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: diff --git a/lld/test/ELF/reproduce.s b/lld/test/ELF/reproduce.s index 66c5c5221aa4..b3014a7e6ce2 100644 --- a/lld/test/ELF/reproduce.s +++ b/lld/test/ELF/reproduce.s @@ -22,13 +22,17 @@ # 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 \