This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]