diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-01 06:17:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-01 06:17:27 +0000 |
commit | fe7db877675e98bcb16ee399d8b094ac7621fc1d (patch) | |
tree | f1483c094bb786eea9acd85734a0b130824018cd | |
parent | ea3fb82138a441e1728aaef1cea2d398fb9670fa (diff) |
Handle the -T option.
We were not reading it or including in the --reproduce archive.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@271367 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | ELF/Driver.cpp | 1 | ||||
-rw-r--r-- | ELF/DriverUtils.cpp | 1 | ||||
-rw-r--r-- | test/ELF/reproduce.s | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp index ac06dd814..31eed5d7a 100644 --- a/ELF/Driver.cpp +++ b/ELF/Driver.cpp @@ -422,6 +422,7 @@ void LinkerDriver::createFiles(opt::InputArgList &Args) { case OPT_l: addLibrary(Arg->getValue()); break; + case OPT_alias_script_T: case OPT_INPUT: case OPT_script: addFile(Arg->getValue()); diff --git a/ELF/DriverUtils.cpp b/ELF/DriverUtils.cpp index b1184620e..b4c41580b 100644 --- a/ELF/DriverUtils.cpp +++ b/ELF/DriverUtils.cpp @@ -217,6 +217,7 @@ std::string elf::createResponseFile(const opt::InputArgList &Args) { case OPT_L: case OPT_dynamic_list: case OPT_rpath: + case OPT_alias_script_T: case OPT_script: case OPT_version_script: OS << Arg->getSpelling() << " " diff --git a/test/ELF/reproduce.s b/test/ELF/reproduce.s index 116c02fa4..811c6cf76 100644 --- a/test/ELF/reproduce.s +++ b/test/ELF/reproduce.s @@ -29,8 +29,9 @@ # RUN: echo "{ local: *; };" > ver # RUN: echo > dyn # RUN: echo > file +# RUN: echo > file2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o 'foo bar' -# RUN: ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile \ +# RUN: ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile -Tfile2 \ # RUN: --dynamic-list dyn -rpath file --script file --version-script ver \ # RUN: --dynamic-linker "some unusual/path" -soname 'foo bar' -soname='foo bar' # RUN: cpio -id < repro2.cpio @@ -38,6 +39,7 @@ # RSP2: "{{.*}}foo bar" # RSP2-NEXT: -L "{{.*}}foo bar" # RSP2-NEXT: -L {{.+}}file +# RSP2-NEXT: --script {{.+}}file2 # RSP2-NEXT: --dynamic-list {{.+}}dyn # RSP2-NEXT: -rpath {{.+}}file # RSP2-NEXT: --script {{.+}}file |