<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Jun 18, 2014, at 11:45 AM, Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br><div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 18, 2014 at 11:12 AM, Hans Wennborg <span dir="ltr"><<a href="mailto:hans@chromium.org" target="_blank">hans@chromium.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Are there really linkers that we care about that don't understand<br>
response files, but accept these "file list files"?<br></blockquote><div><br></div><div>Unfortunately, yes, ld64.  Search the source for -filelist: <a href="http://www.opensource.apple.com/source/ld64/ld64-123.2.1/src/ld/Options.cpp">http://www.opensource.apple.com/source/ld64/ld64-123.2.1/src/ld/Options.cpp</a></div>
</div></div></div>
</blockquote></div><br><div>For background: The darwin linker (ld64) has never supported @file arguments, because the linker is almost always invoked through the clang (or gcc before that) driver which expanded @file and passed its content as arguments to the linker.   Therefore @file never made it to the linker.  The darwin linker option for a file containing a list of files is -filelist <file>.</div><div><br></div><div>Is the motivation for this is that some OSs have a limit to the number/size of command line arguments?  Or that clang internally has limits?  </div><div><br></div><div>-Nick</div><div><br></div></body></html>