From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58030 invoked by alias); 27 May 2015 16:59:10 -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 58020 invoked by uid 89); 27 May 2015 16:59:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f180.google.com Received: from mail-ie0-f180.google.com (HELO mail-ie0-f180.google.com) (209.85.223.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 27 May 2015 16:59:08 +0000 Received: by iebgx4 with SMTP id gx4so18434902ieb.0 for ; Wed, 27 May 2015 09:59:06 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.109.138 with SMTP id hs10mr5668016igb.48.1432745946634; Wed, 27 May 2015 09:59:06 -0700 (PDT) Received: by 10.36.108.21 with HTTP; Wed, 27 May 2015 09:59:06 -0700 (PDT) In-Reply-To: References: <3072346.CTCrhcXNep@laptop1.gw.ume.nu> <87vbflkh05.fsf@igel.home> <87k2w1k54t.fsf@igel.home> <1432676355.2757.4.camel@gnopaine> <1432676452.2757.5.camel@gnopaine> <1432740267.7344.5.camel@otta> <1432742717.7344.9.camel@otta> Date: Wed, 27 May 2015 17:43:00 -0000 Message-ID: Subject: Re: Fwd: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option From: David Edelsohn To: "H.J. Lu" Cc: Peter Bergner , Bill Schmidt , Andreas Schwab , Richard Earnshaw , Bernd Schmidt , Hans-Peter Nilsson , Nick Clifton , Matthew Fortune , "David S. Miller" , Matt Thomas , Rainer Orth , Mike Stump , GCC Patches , "Joseph S. Myers" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-05/txt/msg02500.txt.bz2 On Wed, May 27, 2015 at 12:18 PM, H.J. Lu wrote: > On Wed, May 27, 2015 at 9:05 AM, Peter Bergner wrote: >> On Wed, 2015-05-27 at 08:36 -0700, H.J. Lu wrote: >>> On Wed, May 27, 2015 at 8:24 AM, Peter Bergner wrote: >>> > On Tue, 2015-05-26 at 16:40 -0500, Bill Schmidt wrote: >>> >> Ah, never mind. I guess I need to run automake first. >>> > >>> > I ran the patch on powerpc64-linux (ie, Big Endian) both with and >>> > without --enable-default-pie. Both bootstraps completed with no >>> > errors and the without --enable-default-pie regtested without any >>> > regressions. >>> > >>> > The --enable-default-pie regtesting shows massive failures that I >>> > have to look into. I'm haven't determined yet whether these are >>> > all -m32 FAILs or -m64 FAILS or both. I'll report back with more >>> > info after I dig into some of the failures. >>> >>> Does --enable-default-pie work on powerpc64-linux? Do you >>> get working PIE by default? Some GCC tests expect non-PIE. >>> I fixed some of them: >> >> I haven't looked into any of the failures yet. That said, >> powerpc64-linux is PIC by default, so I thought maybe PIE > > PIC != PIE. Is PIE the default for powerpc64-linux? Please > show me > > # readelf -h /bin/ls > > on powerpc64-linux. > >> would just work. Maybe it does and it's just powerpc-linux >> tests that are failing (I run the testsuite with both >> -m32 and -m64). I won't know until I get some time to have >> a deeper look. That said, if there is something you know >> of that I should look for or at, I'd appreciate it. >> > > You should first verify if --enable-default-pie generates a GCC which > can produce a simple hello program. The --enable-default-pie patch itself works correctly -- as intended -- for powerpc64-linux and powerpc64le-linux and the rs6000 parts of the patch are okay with me. In other words, the option is fine but is not enabled by default so it will not cause any problems. Debugging the testsuite failures is a separate issue. Thanks, David