From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108187 invoked by alias); 2 Nov 2015 21:54:20 -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 108174 invoked by uid 89); 2 Nov 2015 21:54:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: smtp.fgznet.ch Received: from smtp.fgznet.ch (HELO smtp.fgznet.ch) (157.161.14.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 02 Nov 2015 21:54:18 +0000 Received: from [192.168.225.14] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPS id D42A3D75D4 for ; Mon, 2 Nov 2015 22:54:14 +0100 (CET) Subject: Re: [patch] gcc6 FreeBSD rs6000 PIE handling To: GCC Patches References: <56353403.7080308@fgznet.ch> From: Andreas Tobler Message-ID: <5637DB86.3020904@fgznet.ch> Date: Mon, 02 Nov 2015 21:54:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56353403.7080308@fgznet.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00131.txt.bz2 On 31.10.15 22:34, Andreas Tobler wrote: > Hi, > > this is the part for gcc trunk. As mentioned in the previous mail (same > subject for gcc5) I forgot to adapt the PIE bits for FreeBSD powerpc64. > > The patch below lets me bootstrap a current gcc with itself. > > I'll commit this part if there are no objections. Committed: r229680 Andreas > > 2015-10-31 Andreas Tobler > > * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle > PIE executables. > > Index: rs6000/freebsd64.h > =================================================================== > --- rs6000/freebsd64.h (revision 229634) > +++ rs6000/freebsd64.h (working copy) > @@ -130,7 +130,7 @@ > #define LINK_OS_FREEBSD_SPEC > "%{m32:%(link_os_freebsd_spec32)}%{!m32:%(link_os_freebsd_spec64)}" > > #define ASM_SPEC32 "-a32 \ > -%{mrelocatable} %{mrelocatable-lib} %{" FPIC_SPEC ":-K PIC} \ > +%{mrelocatable} %{mrelocatable-lib} %{" FPIE_OR_FPIC_SPEC ":-K PIC} \ > %{memb} %{!memb: %{msdata=eabi: -memb}} \ > %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \ > %{mcall-freebsd: -mbig} \ >