From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26202 invoked by alias); 21 Apr 2008 18:33:13 -0000 Received: (qmail 26194 invoked by uid 22791); 21 Apr 2008 18:33:12 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Apr 2008 18:32:44 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CCF86983DB; Mon, 21 Apr 2008 18:32:42 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id AE8D19829E; Mon, 21 Apr 2008 18:32:42 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jo0oj-00059x-Sp; Mon, 21 Apr 2008 14:32:41 -0400 Date: Mon, 21 Apr 2008 23:34:00 -0000 From: Daniel Jacobowitz To: Ananth Sowda Cc: gdb@sourceware.org Subject: Re: DSO with relocations and GDB. Message-ID: <20080421183241.GA19774@caradoc.them.org> Mail-Followup-To: Ananth Sowda , gdb@sourceware.org References: <20080419035335.GA22346@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00188.txt.bz2 On Mon, Apr 21, 2008 at 11:26:03AM -0700, Ananth Sowda wrote: > On 4/18/08, Daniel Jacobowitz wrote: > > On Fri, Apr 18, 2008 at 03:50:00PM -0700, Ananth Sowda wrote: > > > The powerpc eabi DSO (dynamic shared object) I'm debugging using GDB > > > 6.6 has .debug_info and other debug tables which have unresolved > > > relocations. The .rela_debug_info is available in the DSO and it has > > > sh_link set to .symtab, sh_info to .debug_info. However, the bfd code > > > in GDB 6.6 does not seem to associate the .debug_info with > > > corresponding .rela_debug.info section. When GDB attempts to relocate > > > these debug tables, bfd does not recognize that the section has > > > relocations. > > > > What does objdump -h say about this file? IOW, what do you mean by > > "does not seem to associate"? > > BFD internal section data structure for .debug_info section is not > marked with SEC_RELOC in flags and number of relocation records for > the section is 0. objdump -h output shows that sh_link(points to > .symtab) and sh_link(points to .debug_info) are set correctly for the > .rela_debug.info section. That's the real problem; you may want to ask the binutils list or debug how with sh_link/sh_info set there is still no SEC_RELOC flag. -- Daniel Jacobowitz CodeSourcery