From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30273 invoked by alias); 19 Apr 2008 00:27:59 -0000 Received: (qmail 30264 invoked by uid 22791); 19 Apr 2008 00:27:59 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0506.google.com) (209.85.198.251) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 19 Apr 2008 00:27:42 +0000 Received: by rv-out-0506.google.com with SMTP id b17so433485rvf.48 for ; Fri, 18 Apr 2008 17:27:36 -0700 (PDT) Received: by 10.141.123.4 with SMTP id a4mr1888526rvn.172.1208559000068; Fri, 18 Apr 2008 15:50:00 -0700 (PDT) Received: by 10.141.74.3 with HTTP; Fri, 18 Apr 2008 15:50:00 -0700 (PDT) Message-ID: Date: Sun, 20 Apr 2008 02:39:00 -0000 From: "Ananth Sowda" To: gdb@sourceware.org Subject: DSO with relocations and GDB. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00175.txt.bz2 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. This results in zero value for the offset for a symbol from debug table and gets wrong address for a symbol lookup. Any suggestions for solution to this problem? Is there a bfd function which can be called from GDB to associate debug tables and their relocation section counter parts? Thanks