From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21886 invoked by alias); 3 Mar 2009 23:16:41 -0000 Received: (qmail 21876 invoked by uid 22791); 3 Mar 2009 23:16:40 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from nschwmtas06p.mx.bigpond.com (HELO nschwmtas06p.mx.bigpond.com) (61.9.189.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Mar 2009 23:16:30 +0000 Received: from nschwotgx03p.mx.bigpond.com ([121.209.33.16]) by nschwmtas06p.mx.bigpond.com with ESMTP id <20090303231628.ECPU3101.nschwmtas06p.mx.bigpond.com@nschwotgx03p.mx.bigpond.com>; Tue, 3 Mar 2009 23:16:28 +0000 Received: from bubble.grove.modra.org ([121.209.33.16]) by nschwotgx03p.mx.bigpond.com with ESMTP id <20090303231626.VNTK13658.nschwotgx03p.mx.bigpond.com@bubble.grove.modra.org>; Tue, 3 Mar 2009 23:16:26 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 54A9B170C391; Wed, 4 Mar 2009 09:46:26 +1030 (CST) Date: Tue, 03 Mar 2009 23:16:00 -0000 From: Alan Modra To: Peter Bergner Cc: Daniel Jacobowitz , Thiago Jung Bauermann , Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [patch] Fix power7 ppc64 binaries loading Message-ID: <20090303231626.GB9491@bubble.grove.modra.org> References: <20090302210237.GA23798@host0.dyn.jankratochvil.net> <20090302212403.GA3473@caradoc.them.org> <20090302213340.GA7433@host0.dyn.jankratochvil.net> <1236111881.30573.61.camel@localhost.localdomain> <20090303203050.GA2551@caradoc.them.org> <1236113699.6800.61.camel@otta> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1236113699.6800.61.camel@otta> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150203.49ADBA4C.0040,ss=1,fgs=0 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00041.txt.bz2 On Tue, Mar 03, 2009 at 02:54:59PM -0600, Peter Bergner wrote: > On Tue, 2009-03-03 at 15:30 -0500, Daniel Jacobowitz wrote: > > On Tue, Mar 03, 2009 at 05:24:41PM -0300, Thiago Jung Bauermann wrote: > > > Does apuinfo get generated for every binary in every platform? Why > > > wasn't this an issue before? It just started being generated recently? > > > > I assume it is only generated for specific ISA extensions - and that > > both POWER7 and e500 have them. GAS says: > > > > if (ppc_cpu & (PPC_OPCODE_SPE > > | PPC_OPCODE_ISEL | PPC_OPCODE_EFS > > | PPC_OPCODE_BRLOCK | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK > > | PPC_OPCODE_RFMCI)) > > With Power ISA 2.06 which was just recently announced on power.org, the > isel instruction has now moved from an optional instruction to a required > instruction. The POWER7 processor is ISA 2.06 compliant, so it has the > PPC_OPCODE_ISEL flag set which triggers this...as will all future Power > processors. > > That said, I have no idea what the apuinfo section is being used for. Google for E500 ABI. It should only be enabled when you are assembling for e500. I've committed the following to mainline and 2.19 branch. * config/tc-ppc.c (md_assemble): APUinfo only for e500. Index: gas/config/tc-ppc.c =================================================================== RCS file: /cvs/src/src/gas/config/tc-ppc.c,v retrieving revision 1.147 diff -u -p -r1.147 tc-ppc.c --- gas/config/tc-ppc.c 26 Feb 2009 22:07:32 -0000 1.147 +++ gas/config/tc-ppc.c 3 Mar 2009 22:54:35 -0000 @@ -2965,10 +3038,7 @@ md_assemble (char *str) #ifdef OBJ_ELF /* Do we need/want a APUinfo section? */ - if (ppc_cpu & (PPC_OPCODE_SPE - | PPC_OPCODE_ISEL | PPC_OPCODE_EFS - | PPC_OPCODE_BRLOCK | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK - | PPC_OPCODE_RFMCI)) + if ((ppc_cpu & PPC_OPCODE_E500MC) != 0) { /* These are all version "1". */ if (opcode->flags & PPC_OPCODE_SPE) -- Alan Modra Australia Development Lab, IBM