From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13360 invoked by alias); 12 May 2006 02:29:17 -0000 Received: (qmail 13350 invoked by uid 22791); 12 May 2006 02:29:16 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 12 May 2006 02:29:14 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FeNOy-0006PH-3N; Thu, 11 May 2006 22:29:12 -0400 Date: Fri, 12 May 2006 08:37:00 -0000 From: Daniel Jacobowitz To: PAUL GILLIAM Cc: gdb@sources.redhat.com Subject: Re: Strange stepping behaviour with PPC 32 and secure PLTs Message-ID: <20060512022912.GA24549@nevyn.them.org> Mail-Followup-To: PAUL GILLIAM , gdb@sources.redhat.com References: <1143758781.21920.464.camel@dufur.beaverton.ibm.com> <1147389317.3672.46.camel@dufur.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1147389317.3672.46.camel@dufur.beaverton.ibm.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00157.txt.bz2 On Thu, May 11, 2006 at 04:15:17PM -0700, PAUL GILLIAM wrote: > One way to fix this is for BFD to synthesize a new symbol in addition to 'foo@plt', let's > say we call it 'foo@stub'. This new symbol would be in the '.text' section and would > be found by lookup_minimal_symbol_by_pc_section() and all would be well. BFD would know > that such a symbol should be generated if it was dealing with a ppc32 object file whose > '.plt' section was not executable. > > I would rather have a GDB only solution. Why? The BFD solution is much more useful: it will make disassembly have useful labels in both objdump and gdb when stopped in a stub. rs6000_skip_trampoline_code may also be involved. > A possibility would be to change lookup_minimal_symbol_by_pc_section() so that a symbol in > the 'unknown' section would not be ignored if it was of type 'mst_solib_trampoline'. What do you mean by "unknown section"? -- Daniel Jacobowitz CodeSourcery