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? -- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss
[Dwarf-discuss] .debug_cu_index question
David Anderson via Dwarf-discuss Fri, 20 Dec 2024 09:36:22 -0800
- [Dwarf-discuss] .debug_cu_index question David Anderson via Dwarf-discuss
- Re: [Dwarf-discuss] .debug_cu_index ... David Blaikie via Dwarf-discuss
- Re: [Dwarf-discuss] .debug_cu_in... David Anderson via Dwarf-discuss