Re: Question about "gnu.linkonce.wi." sections

Daniel Jacobowitz
2005-11-07T13:41:54Z

[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