This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: hjl dot tools at gmail dot com
- Cc: joseph at codesourcery dot com, zorry at gentoo dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 May 2015 00:53:30 +0200
- Subject: Re: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option
- Authentication-results: sourceware.org; auth=none
> From: "H.J. Lu" <hjl.tools@gmail.com>
> Date: Tue, 19 May 2015 21:20:46 +0200
> This patch affects your target. Can you verify if it is OK on
> your target?
If you mean philosophically, it's ok when the general bits and
direction are ok, but for the practical part of checking
e.g. for typos through compilation, please use yourself a script
like gcc/contrib/config-list.mk.
> ----
> Add --enable-default-pie option to configure GCC to generate PIE by
> default.
>
> gcc/
>
> 2015-05-19 Magnus Granberg <zorry@gentoo.org>
> H.J. Lu <hongjiu.lu@intel.com>
> * gcc.c (NO_PIE_SPEC): New.
> (PIE_SPEC): Likewise.
> (NO_FPIE1_SPEC): Likewise.
> (FPIE1_SPEC): Likewise.
> (NO_FPIE2_SPEC): Likewise.
> (FPIE2_SPEC): Likewise.
> (NO_FPIE2_SPEC): Likewise.
> (FPIE_SPEC): Likewise.
> (NO_FPIE_SPEC): Likewise.
> (NO_FPIC1_SPEC): Likewise.
> (FPIC1_SPEC): Likewise.
> (NO_FPIC2_SPEC): Likewise.
> (FPIC2_SPEC): Likewise.
> (NO_FPIC2_SPEC): Likewise.
> (FPIC_SPEC): Likewise.
> (NO_FPIC_SPEC): Likewise.
> (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
> (FPIE1_OR_FPIC1_SPEC): Likewise.
> (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
> (FPIE2_OR_FPIC2_SPEC): Likewise.
> (NO_FPIE_AND_FPIC_SPEC): Likewise.
> (FPIE_OR_FPIC_SPEC): Likewise.
> (LD_PIE_SPEC): Likewise.
> (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
> * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
> FPIE2_OR_FPIC2_SPEC.
> * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
ok.
brgds, H-P