search for: dw_at_str_offsets_base

Displaying 2 results from an estimated 2 matches for "dw_at_str_offsets_base".

2017 Jul 05
2
[DWARFv5] Reading the .debug_str_offsets section
...ection which has one or more "contributions" in it. Each contribution has a header, which gives its size and whether the array elements are 32 or 64 bits wide. Any DWARF compile-unit or type-unit that uses the array (that is, any unit that uses any of the "strx" forms) has a DW_AT_str_offsets_base attribute that points to the 0th element of the array. The producer chooses whether to have one contribution shared by all units, one contribution per unit, or somewhere in between. There's an implication for how to read the .debug_str_offsets section, which is that the reader has to parse th...
2017 Jul 06
2
[DWARFv5] Reading the .debug_str_offsets section
...; > Subject: [llvm-dev] [DWARFv5] Reading the .debug_str_offsets section > > > snip ... > > > > Things get way trickier in an object (executable or "-r" ouput) that > > has a mix of GCC and standard contributions. AFAICT there's no > > equivalent of DW_AT_str_offsets_base in the GCC style, so about all > > we can do is something like this: > > (1) Walk through all units to find all DW_AT_str_offsets_base pointers; > > (2) for each one, poke around in the prior 8-16 bytes looking for > > the header; this is more reliable than it sounds; &g...