diff options
| author | Ulf Hermann <[email protected]> | 2017-12-21 14:30:36 +0100 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-12-21 14:03:12 +0000 |
| commit | e556d22e3f6f59301c5a2616507c1a2357b01798 (patch) | |
| tree | 944528e11552e89f521226407618c47be2f9f3a6 /tests | |
| parent | bc26cd7ca3a60aaaeed86b1dfd69d31287ee26d3 (diff) | |
libdw: Add explicit section index to struct Dwarf_CU
The DIE (attribute) data might come from either the main .debug_info
section or for DWARFv4 from a separate .debug_types section. Or in
case of the fake_loc_cu from the .debug_loc section and in the case
of macros from the .debug_macinfo or .debug_macro section.
We didn't handle the last two "fake" CU cases correctly when sanity
checking offsets in __libdw_read_address and __libdw_read_offset.
Add an explicit sec_idx field to struct Dwarf_CU that is always set
to the actual section that the data came from.
Change-Id: I83260622b55d3778a38cd46427dba158d186c51e
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
