This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google/gcc-4_9] Add gcc driver option -no-pie
- From: Cary Coutant <ccoutant at google dot com>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, David Li <davidxl at google dot com>, Paul Pluzhnikov <ppluzhnikov at google dot com>
- Date: Thu, 9 Oct 2014 15:34:54 -0700
- Subject: Re: [google/gcc-4_9] Add gcc driver option -no-pie
- Authentication-results: sourceware.org; auth=none
- References: <CAAs8Hmxo30ppz5tp65hhbnWrVTxLof+LGLFQbYhXJhE-xDB+2A at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1410062221540 dot 25827 at digraph dot polyomino dot org dot uk> <CAAs8Hmx_vfqP+wGm_X3uMaV9BuNcCDPd92D1+qe9V4hQmo=0TQ at mail dot gmail dot com> <CAAs8Hmx=ddMC1XT7gnXF1LhwM1EU27Npik0zQjg=71TUpWARVQ at mail dot gmail dot com>
>>> If adding a new option, you need to document it in invoke.texi.
>>
>> Patch updated.
>
> Is this alright for google/gcc-4_9?
+no-pie
+Driver RejectNegative Negative(pie)
+Create a position dependent executable
I'd suggest adding an alias for "-no-pie" (meaning "--no-pie") -- see
earlier in common.opt where "-pie" is declared as an alias for "pie",
and similarly for "-shared".
I wonder about the spelling -- should it be "-no-pie" or "-nopie"? GCC
options seem to favor "no" options without a hyphen, but it's not very
consistent, so it's probably good the way you've spelled it -- it
better matches the way the linker option is spelled (albeit without
the "f").
-cary