[PATCH] D42825: Fix typo: --nopie -> --no-pie.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 11:52:49 PST 2018


At least on my Linux machine, if you pass `-nopie` to ld.bfd, looks like it
is interpreted as `-n -o pie`, so it creates "pie" as an output file. If
you pass `-o foo` after `-nopie`, `-o pie` is silently ignored and the
output file is set to `foo`. That's extremely confusing and error-prone.
That makes me believe that we really shouldn't accept `-nopie`.

On Mon, Feb 19, 2018 at 8:59 PM, Ed Maste <emaste at freebsd.org> wrote:

> On 19 February 2018 at 23:41, Rui Ueyama <ruiu at google.com> wrote:
> > I was thinking that -nopie is an OpenBSD-local extension, but does that
> mean
> > FreeBSD also accept that flag?
>
> There's no -nopie flag in FreeBSD's toolchain.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180220/7b39f6b6/attachment.html>


More information about the llvm-commits mailing list