<div dir="ltr">Can you start using --no-pie instead of -nopie in OpenBSD?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 8:18 PM, Brad Smith <span dir="ltr"><<a href="mailto:brad@comstyle.com" target="_blank">brad@comstyle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>This breaks lld on OpenBSD. The command line parameter was taken
from our linker which we've been using for almost 6 years.<br>
</p><div><div class="h5">
<br>
<div class="m_-7421515251662134428moz-cite-prefix">On 2/16/2018 11:10 PM, Rui Ueyama
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">If you give "-nopie" (with single leading hyphen)
to gold, it looks like gold interprets it as "-n -o pie". So, it
doesn't print out any error message, and it silently sets the
output file name to "pie", which is I think worse than reporting
an error on "-nopie".</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 16, 2018 at 7:59 PM, Rui
Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</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">Can you explain why you think so?
<div><br>
</div>
<div>
<div>$ ld.gold --no-pie</div>
<div>ld.gold: fatal error: no input files</div>
<div><br>
</div>
<div>$ ld.gold --nopie</div>
<div>ld.gold: --nopie: unknown option</div>
<div>ld.gold: use the --help option for usage
information</div>
<div><br>
</div>
<div>$ ld.bfd --no-pie</div>
<div>ld.bfd: unrecognized option '--no-pie'</div>
<div>ld.bfd: use the --help option for usage information</div>
<div><br>
</div>
<div>$ ld.bfd --nopie</div>
<div>ld.bfd: unrecognized option '--nopie'</div>
<div>ld.bfd: use the --help option for usage information</div>
</div>
</div>
<div class="m_-7421515251662134428HOEnZb">
<div class="m_-7421515251662134428h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 16, 2018 at 7:55
PM, Brad Smith via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">brad
added a comment.<br>
Herald added a subscriber: arichardson.<br>
<br>
This was NOT a typo.<br>
<div class="m_-7421515251662134428m_3877545095905389461HOEnZb">
<div class="m_-7421515251662134428m_3877545095905389461h5"><br>
<br>
Repository:<br>
rLLD LLVM Linker<br>
<br>
<a href="https://reviews.llvm.org/D42825" rel="noreferrer" target="_blank">https://reviews.llvm.org/D4282<wbr>5</a><br>
<br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>