[Dwarf-discuss] .debug_cu_index question

David Anderson davea42@linuxmail.org
Fri Dec 20 17:36:02 GMT 2024


The examples of .debug_tu_index in DWARF5 Section F.2.3
show the hash as computed  by Type Signature Computation
Section 7.32 and referenced by DW_AT_LOCATION DW_FORM_ref_sig8.
Ok. I was thinking of this incorrectly before. It's not
visible as a whole-CU index.  I think.
See pages 412, 413.


The examples of .debug_cu_index in DWARF5 Section F.2.3
do not really show where/how a calculated hash is used.

Text on page 411, line 6 is relevant.

One example object I have on hand (not a recent
one) shows a CU header  signature
of   0x60ff5d2827dca832
and that same signature in a hash field in .debug_cu_index.
(the examples in DWARF5 do not mention the connection to
the CU header signature).

Would that mean .debug_cu_index just uses the CU header signature
by borrowing  a precomputed hash from the CU header?

That means      .debug_cu_index is a whole-CU index?






More information about the Dwarf-discuss mailing list