<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 20, 2015 at 2:19 PM, Paul Robinson <span dir="ltr"><<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank">Paul_Robinson@playstation.sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">objcopy's default behavior on seeing an unrecognized switch is to dump its entire help text.<br>
That's not what I'd call user-friendly.<br></blockquote><div><br>File a bug on objcopy? The best alternative I can imagine would be clang running objcopy to check if it supports the flag and then producing some other error message which seems like a workaround for an objcopy bug & a lot of work for a relatively infrequent case (& no doubt there'll be a stack overflow post with "why do I get this objcopy result when I enable split-dwarf" with the appropriate answer of "upgrade objcopy to version <blah>").<br><br>No-op by default seems misleading.<br>Error when it's not actually problem seems misleading too.<br><br>This produces errors when it's an error and makes it work when it works, with the drawback of having a somewhat confusing failure mode.<br><br>- David<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D8484" target="_blank">http://reviews.llvm.org/D8484</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>