On 1/13/25 11:31, David Blaikie wrote:
I still think the commentary on the indexes isn't quite right. They're
separate from this issue - you'd still need the rnglists base, or have
to assume that it's sizeof(header), to go that far into the region
described by the index.
The index essentially makes a DWP look like a bunch of separate DWO
files - so the rules that apply to the DWO file apply equally to the DWP
file.
If I understand correctly, the offset in .debug_cu_index (for example,
say DW_SECT_RNGLISTS) is
a section offset of the rnglists contribution of a CU.
So one does not need the rnglists_base, it can be calculated by reading
the header whose offset is given by the header.
I expect any reader would note and remember the offsets table offset on
reading .debug_cu_index.
So, if .debug_cu_index is present (so this
is from a package file) and therefore has the rnglists contribution
offset, why would rnglists_base be needed?
Not feeling totally comfortable about this.
DavidA
--
If it weren't for Philo T. Farnsworth, inventor
of television, we'd still be eating frozen radio
dinners. -- Johnny Carson
--
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss