From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 697 invoked by alias); 7 Nov 2005 13:41:54 -0000 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 Received: (qmail 687 invoked by uid 22791); 7 Nov 2005 13:41:49 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 07 Nov 2005 13:41:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EZ7Fq-0000g6-L3; Mon, 07 Nov 2005 08:41:46 -0500 Date: Mon, 07 Nov 2005 13:41:00 -0000 From: Daniel Jacobowitz To: Ivan Pantushev Cc: gdb@sources.redhat.com Subject: Re: Question about "gnu.linkonce.wi." sections Message-ID: <20051107134146.GA2426@nevyn.them.org> Mail-Followup-To: Ivan Pantushev , gdb@sources.redhat.com References: <20051107080553.C3FA584028@ws1-5.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051107080553.C3FA584028@ws1-5.us4.outblaze.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00145.txt.bz2 [I feel like I've answered this question recently, but I can't remember where...] On Mon, Nov 07, 2005 at 03:05:53AM -0500, Ivan Pantushev wrote: > <1>: Abbrev Number: 6 (DW_TAG_array_type) > DW_AT_sibling : > DW_AT_type : <#19> > > The last DW_AT_type references type information at offset 0x19, but > there is no such information in the .debug_info section. #19 means that this is a reference to another compilation unit. You are looking at an unlinked object file. That means that there are unapplied relocations; take a look at the readelf -r output and you can work out which section the relocation at that offset is targetting. If there's no relocation, it's the current section. Readelf doesn't have any way to print out relocations for dwarf decoding. It is more effective on linked objects. -- Daniel Jacobowitz CodeSourcery, LLC