This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Question about "gnu.linkonce.wi." sections
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ivan Pantushev <ipantushev at iname dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 7 Nov 2005 08:41:46 -0500
- Subject: Re: Question about "gnu.linkonce.wi." sections
- References: <20051107080553.C3FA584028@ws1-5.us4.outblaze.com>
[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><c2>: Abbrev Number: 6 (DW_TAG_array_type)
> DW_AT_sibling : <d2>
> 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