From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2983 invoked by alias); 19 Apr 2008 04:28:24 -0000 Received: (qmail 2974 invoked by uid 22791); 19 Apr 2008 04:28:23 -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; Sat, 19 Apr 2008 04:28:05 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9835C983D9; Sat, 19 Apr 2008 03:53:36 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 790B9983D6; Sat, 19 Apr 2008 03:53:36 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jn48t-0005oq-9D; Fri, 18 Apr 2008 23:53:35 -0400 Date: Sun, 20 Apr 2008 09:09:00 -0000 From: Daniel Jacobowitz To: Ananth Sowda Cc: gdb@sourceware.org Subject: Re: DSO with relocations and GDB. Message-ID: <20080419035335.GA22346@caradoc.them.org> Mail-Followup-To: Ananth Sowda , gdb@sourceware.org References: 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/msg00176.txt.bz2 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"? GDB is supposed to handle this case correctly. However, we've also pretty well established that the linker is wrong to emit such relocations; if you have the option of using a different linker version which does not do so, I recommend it. -- Daniel Jacobowitz CodeSourcery