<div dir="ltr">I was thinking that -nopie is an OpenBSD-local extension, but does that mean FreeBSD also accept that flag?<div><br></div><div>Can you give me a list of occurrences of -nopie in ports?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 8:16 PM, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Running<br>
<br>
git grep -- -nopie<br>
<br>
finds 50 lines in src and 35 in ports.<br>
<br>
Cheers,<br>
Rafael<br>
<span class=""><br>
Brad Smith <<a href="mailto:brad@comstyle.com">brad@comstyle.com</a>> writes:<br>
<br>
> No.<br>
><br>
> On 2/16/2018 11:22 PM, Rui Ueyama wrote:<br>
>> Can you start using --no-pie instead of -nopie in OpenBSD?<br>
>><br>
>> On Fri, Feb 16, 2018 at 8:18 PM, Brad Smith <<a href="mailto:brad@comstyle.com">brad@comstyle.com</a><br>
</span><span class="">>> <mailto:<a href="mailto:brad@comstyle.com">brad@comstyle.com</a>>> wrote:<br>
>><br>
>>     This breaks lld on OpenBSD. The command line parameter was taken<br>
>>     from our linker which we've been using for almost 6 years.<br>
>><br>
>><br>
>>     On 2/16/2018 11:10 PM, Rui Ueyama wrote:<br>
>>>     If you give "-nopie" (with single leading hyphen) to gold, it<br>
>>>     looks like gold interprets it as "-n -o pie". So, it doesn't<br>
>>>     print out any error message, and it silently sets the output file<br>
>>>     name to "pie", which is I think worse than reporting an error on<br>
>>>     "-nopie".<br>
>>><br>
>>>     On Fri, Feb 16, 2018 at 7:59 PM, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a><br>
</span><span class="">>>>     <mailto:<a href="mailto:ruiu@google.com">ruiu@google.com</a>>> wrote:<br>
>>><br>
>>>         Can you explain why you think so?<br>
>>><br>
>>>         $ ld.gold --no-pie<br>
>>>         ld.gold: fatal error: no input files<br>
>>><br>
>>>         $ ld.gold --nopie<br>
>>>         ld.gold: --nopie: unknown option<br>
>>>         ld.gold: use the --help option for usage information<br>
>>><br>
>>>         $ ld.bfd --no-pie<br>
>>>         ld.bfd: unrecognized option '--no-pie'<br>
>>>         ld.bfd: use the --help option for usage information<br>
>>><br>
>>>         $ ld.bfd --nopie<br>
>>>         ld.bfd: unrecognized option '--nopie'<br>
>>>         ld.bfd: use the --help option for usage information<br>
>>><br>
>>>         On Fri, Feb 16, 2018 at 7:55 PM, Brad Smith via Phabricator<br>
</span>>>>         <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a> <mailto:<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.<wbr>org</a>>><br>
<span class="">>>>         wrote:<br>
>>><br>
>>>             brad added a comment.<br>
>>>             Herald added a subscriber: arichardson.<br>
>>><br>
>>>             This was NOT a typo.<br>
>>><br>
>>><br>
>>>             Repository:<br>
>>>               rLLD LLVM Linker<br>
>>><br>
>>>             <a href="https://reviews.llvm.org/D42825" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D42825</a><br>
</span>>>>             <<a href="https://reviews.llvm.org/D42825" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D42825</a>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>><br>
>><br>
</blockquote></div><br></div>