The type_offset of a type unit header is relative to the beginning
of the type unit header.
Signed-off-by: Jason P. Leasure <jpleasu@super.org>
+2015-01-14 Jason P. Leasure <jpleasu@super.org>
+
+ * dwarf_formref_die.c (dwarf_formref_die): Offset is cu->type_offset
+ plus cu->start.
+
2014-12-27 Mark Wielaard <mjw@redhat.com>
* dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute offset
datap = cu->dbg->sectiondata[IDX_debug_types]->d_buf;
size = cu->dbg->sectiondata[IDX_debug_types]->d_size;
- offset = cu->type_offset;
+ offset = cu->start + cu->type_offset;
}
else
{