From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 949 invoked by alias); 18 Jun 2011 15:32:02 -0000 Received: (qmail 937 invoked by uid 22791); 18 Jun 2011 15:32:02 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_GC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 18 Jun 2011 15:31:47 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id B7F23B005C; Sat, 18 Jun 2011 11:31:46 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id p5IFVkBL001024; Sat, 18 Jun 2011 11:31:46 -0400 Date: Sat, 18 Jun 2011 19:02:00 -0000 From: Jack Howarth To: Mike Stump Cc: gcc-patches@gcc.gnu.org, iains@gcc.gnu.org Subject: Re: [PATCH][Revised] Pass -no_pie on SYSTEMSPEC for darwin11 Message-ID: <20110618153146.GB963@bromo.med.uc.edu> References: <20110618024913.GA29537@bromo.med.uc.edu> <0FD640D8-9759-4607-B21F-937355E6C3EB@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0FD640D8-9759-4607-B21F-937355E6C3EB@comcast.net> User-Agent: Mutt/1.5.18 (2008-05-17) 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/msg01398.txt.bz2 On Sat, Jun 18, 2011 at 07:48:51AM -0700, Mike Stump wrote: > On Jun 17, 2011, at 7:49 PM, Jack Howarth wrote: > > The gcj compiler needs to pass -no_pie for linkage on darwin11 due to the new -pie > > default of the linker. The attached patch accomplishes this by passing -no_pie on SYSTEMSPEC > > for *-*-darwin[12]*. Since Darwin10 supports -no_pie in its linker, I included it in the > > triplet match to simplify the syntax. Bootstrap and tested on x86_64-apple-darwin11. > > Okay for gcc trunk with PR added to comment as requested? > > > ps This change also works for gcc-4_6-branch in concert with a backport of > > r175089 and r175108. > > I've backported these two to the gcc-4_6-branch. I tried 4.5, but, they'd need to have mh-darwin backported, so I didn't bother. Mike, We might just create a mh-x86-darwin for gcc 4.5. Currently dragonegg only supports that FSF gcc release so it would be nice to have a clean bootstrap on darwin11 to support that option. Jack ps FYI, I am only suggesting we populate mh-x86-darwin with... # Ensure we don't try and use -pie, as it is incompatible with pch. BOOT_LDFLAGS += `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;` and skip the... BOOT_CFLAGS += -mdynamic-no-pic bit.