From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10288 invoked by alias); 16 Jun 2011 05:47:08 -0000 Received: (qmail 10280 invoked by uid 22791); 16 Jun 2011 05:47:07 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (140.186.70.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jun 2011 05:46:54 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QX1TJ-0005tu-0s for gcc-patches@gcc.gnu.org; Wed, 15 Jun 2011 21:34:13 -0400 Received: from qmta14.emeryville.ca.mail.comcast.net ([76.96.27.212]:45384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX1TI-0005tL-Pt for gcc-patches@gcc.gnu.org; Wed, 15 Jun 2011 21:34:12 -0400 Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta14.emeryville.ca.mail.comcast.net with comcast id wRJv1g0041vN32cAERZqVd; Thu, 16 Jun 2011 01:33:50 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta22.emeryville.ca.mail.comcast.net with comcast id wRZi1g00Z0BKwT48iRZjjj; Thu, 16 Jun 2011 01:33:43 +0000 From: Mike Stump Content-Type: multipart/mixed; boundary=Apple-Mail-6--831651402 Subject: Turn on -pie on darwin11 and later Date: Thu, 16 Jun 2011 05:51:00 -0000 Message-Id: Cc: Jack Howarth To: gcc-patches List Mime-Version: 1.0 (Apple Message framework v1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.96.27.212 X-IsSubscribed: yes 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 X-SW-Source: 2011-06/txt/msg01193.txt.bz2 --Apple-Mail-6--831651402 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-length: 53 * mh-darwin: Turn off -pie on darwin11 and later. --Apple-Mail-6--831651402 Content-Disposition: attachment; filename=no-pie.patch.txt Content-Type: text/plain; name="no-pie.patch.txt" Content-Transfer-Encoding: quoted-printable Content-length: 770 2011-06-15 Mike Stump * mh-darwin: Turn off -pie on darwin11 and later. Index: mh-darwin =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- mh-darwin (revision 174625) +++ mh-darwin (working copy) @@ -1,5 +1,7 @@ # The -mdynamic-no-pic ensures that the compiler executable is built witho= ut # position-independent-code -- the usual default on Darwin. This fix speeds # compiles by 3-5%. - BOOT_CFLAGS +=3D -mdynamic-no-pic + +# Ensure we don't try and use -pie, as it is incompatible with pch. +BOOT_LDFLAGS=3D`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; e= sac;` --Apple-Mail-6--831651402--