<div dir="ltr">Fixed in r268273.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 2, 2016 at 11:10 AM, Peter Collingbourne <span dir="ltr"><<a href="mailto:peter@pcc.me.uk" target="_blank">peter@pcc.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Apr 30, 2016 at 3:46 PM, Rui Ueyama via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: ruiu<br>
Date: Sat Apr 30 17:46:47 2016<br>
New Revision: 268172<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=268172&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=268172&view=rev</a><br>
Log:<br>
ELF: --reproduce: quote pathnames for -L and other options.<br>
<br>
Previously, arguments for options that take pathnames were not rewritten.<br>
<br>
Modified:<br>
    lld/trunk/ELF/DriverUtils.cpp<br>
    lld/trunk/test/ELF/reproduce.s<br>
<br>
Modified: lld/trunk/ELF/DriverUtils.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=268172&r1=268171&r2=268172&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=268172&r1=268171&r2=268172&view=diff</a><br>
==============================================================================<br>
--- lld/trunk/ELF/DriverUtils.cpp (original)<br>
+++ lld/trunk/ELF/DriverUtils.cpp Sat Apr 30 17:46:47 2016<br>
@@ -137,6 +137,12 @@ static std::string quote(StringRef S) {<br>
   return ("\"" + S + "\"").str();<br>
 }<br>
<br>
+static std::string rewritePath(StringRef S) {<br>
+  if (fs::exists(S))<br>
+    return getDestPath(S);<br>
+  return S;<br>
+}<br>
+<br>
 // Copies all input files to Config->Reproduce directory and<br>
 // create a response file as "response.txt", so that you can re-run<br>
 // the same command with the same inputs just by executing<br>
@@ -157,25 +163,25 @@ void elf::createResponseFile(const llvm:<br>
   raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None);<br>
   check(EC);<br>
<br>
-  // Dump the command line to response.txt while copying files<br>
-  // and rewriting paths.<br>
+  // Copy the command line to response.txt while rewriting paths.<br>
   for (auto *Arg : Args) {<br>
     switch (Arg->getOption().getID()) {<br>
     case OPT_reproduce:<br>
       break;<br>
+    case OPT_INPUT:<br>
+      OS << quote(rewritePath(Arg->getValue())) << "\n";<br>
+      break;<br>
+    case OPT_L:<br>
+    case OPT_dynamic_list:<br>
+    case OPT_export_dynamic_symbol:<br></blockquote><div><br></div></div></div><div>--export-dynamic-symbol does not take a path.</div><div><br></div><div>Thanks,</div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">-- <div>Peter</div></div></div>
</font></span></div></div>
</blockquote></div><br></div>