Skip to content

Commit 4431c21

Browse files
committed
lld/ELF: Make three rarely-used flags work with --reproduce
All three use readFile() for their argument so their argument file is already copied to the tar, but we weren't rewriting the argument to point to the path used in the tar file. No test because the change is trivial (several other flags in createResponseFile() also aren't tested, likely for the same reason.) Differential Revision: https://reviews.llvm.org/D92356
1 parent 17427ec commit 4431c21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/ELF/DriverUtils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,11 @@ std::string elf::createResponseFile(const opt::InputArgList &args) {
186186
// Strip directories to prevent the issue.
187187
os << "-o " << quote(path::filename(arg->getValue())) << "\n";
188188
break;
189+
case OPT_call_graph_ordering_file:
189190
case OPT_dynamic_list:
191+
case OPT_just_symbols:
190192
case OPT_library_path:
193+
case OPT_retain_symbols_file:
191194
case OPT_rpath:
192195
case OPT_script:
193196
case OPT_symbol_ordering_file:

0 commit comments

Comments
 (0)