From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15134 invoked by alias); 9 Jan 2015 18:00:21 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 15105 invoked by uid 89); 9 Jan 2015 18:00:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f172.google.com Received: from mail-ob0-f172.google.com (HELO mail-ob0-f172.google.com) (209.85.214.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 09 Jan 2015 18:00:19 +0000 Received: by mail-ob0-f172.google.com with SMTP id va8so14315123obc.3 for ; Fri, 09 Jan 2015 10:00:17 -0800 (PST) X-Received: by 10.60.114.40 with SMTP id jd8mr10091728oeb.12.1420826417161; Fri, 09 Jan 2015 10:00:17 -0800 (PST) Received: from [192.168.0.14] (CPEbc1401380f73-CMbc1401380f70.cpe.net.cable.rogers.com. [99.231.166.199]) by mx.google.com with ESMTPSA id d76sm4695365oic.14.2015.01.09.10.00.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jan 2015 10:00:15 -0800 (PST) Message-ID: <54B0172E.50600@gmail.com> Date: Fri, 09 Jan 2015 18:03:00 -0000 From: Daniel Micay User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Joseph Myers CC: Richard Biener , Magnus Granberg , GCC Patches Subject: Re: [PING][PATCH][1-3] New configure options that make the compiler use -fPIE and -pie as default option References: <4827012.p4mTkPPu1h@laptop1.gw.ume.nu> <2546517.6r217PbQ20@laptop1.gw.ume.nu> <3640063.8rDKLvUbS6@laptop1.gw.ume.nu> <1625902.vd5h90ZESU@laptop1.gw.ume.nu> <54AFE15D.40406@gmail.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5q18N15EpR3SbulaLPD0rD8cUr6UJ34ET" X-SW-Source: 2015-01/txt/msg00547.txt.bz2 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5q18N15EpR3SbulaLPD0rD8cUr6UJ34ET Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Content-length: 1158 On 09/01/15 12:49 PM, Joseph Myers wrote: > On Fri, 9 Jan 2015, Daniel Micay wrote: >=20 >>> --with-specs=3D"%{pie|fpic|fPIC|fpie|fPIE|fno-pic|fno-PIC|fno-pie|fno-P= IE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE >>> -pie}" >>> >>> at configure time (using CONFIGURE_SPECS). >>> >>> I have no idea if the above is really the proper spec to use - why >>> do you include static, nostdlib, nodefaultlibs and nostartfiles >>> for example? Similar, if I say >> >> PIE isn't supported for static executables by binutils, etc. so it >> does need to exclude that. The checks for nostdlib, nodefaultlibs >=20 > Well - that would indicate excluding -pie if one of the link-time options= =20 > conflicting with it is used, -fPIE if one of the compile-time options=20 > conflicting with it is used. That way, "gcc -static file.c" would still= =20 > have the same effect as "gcc -c file.c; gcc -static file.o" (building a=20 > PIE object, linking it into a non-PIE static executable), which makes=20 > logical sense to me (although there may be no great benefit either way). Sure, I agree. It should have separate lists of exceptions for both of these. --5q18N15EpR3SbulaLPD0rD8cUr6UJ34ET Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUsBcuAAoJEPnnEuWa9fIqDrMP/iel6HVTW1RG9ypzojrf+gFn UZ6oLLm5y/Rv3JID4Gh1omKtj1nJRpDETH6vDvc+CpZpI83IfQAOthWvT464rk24 20X6W2DdwL/LAE0S9qO+I/kUrXxgxGwLsJhSKD2SnDEfPllwl+CVJHWBcCg7gW8l gEDL1zM/daU3qZBmgIOyWJJ2zlZUqXS8mqO45Kh/rEdrlBEJ10Fyq2Jvflvg2+x6 OtDxNKrjCppQ3Rmnc4XouM+b0JP44Pu7+mbOCY6Scac27u8ZNErEKz7bxaqTd7FT PPSaGMXAXire4L9Fn6XrktydP2/mQrJ6AW8K5eof42cCtDtXxnx22/hx02pvbXuv aMii/GJ4vgcDWvN2D6Lc3VOqeevg44AjgWpW9Ygg7+VEwLXFPh9yFvrLIKeNe8dV ctjdLiVMWgTlKsrMZ4HamUOhVugFplo4ITWE8nNYXTsBg35m6mmqlFetCh4KRfO/ jw1AbSAv5m8vKQvn5cnqe/TsHKHmkrMMr9uqFpGWvL8mBHS5NfhwwmKH+HavJ8/X b4DELn/tNJa6qC1EXFte6lrEMXIa3VFn3dY/gts89bT/kHtxXZ2r77uGf6NJhWHH 1+LLUKUBQ3tk8g5IZf2WythKut9aLNQ8l49TfhPb3pA/LZgKEL3ttp9eDlDKjWAN AZrBfrXLLVHEnmJFA3+q =205b -----END PGP SIGNATURE----- --5q18N15EpR3SbulaLPD0rD8cUr6UJ34ET--