Displaying 2 results from an estimated 2 matches for "str_offsets_base".
2017 Jul 06
2
[DWARFv5] Reading the .debug_str_offsets section
Yep, Wolfgang picked up on the one thing I saw too.
This is why I like having people review my stuff.
I think it's a bit of a pity that str_offsets_base can point into the middle of a str_offsets contribution in some ways
Actually I changed my mind after saying that in the review, and in this writeup I concluded that it cannot do that. str_offsets_base points to the element immediately after the header. You can have multiple units sharing the (e...
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...