[Dwarf-Discuss] The .debug_str_offsets section and libdwarf/dwarfdump

David Blaikie dblaikie@gmail.com
Mon Apr 16 02:53:35 GMT 2018


Does your example have a DW_AT_producer string by chance?

On Sat, Apr 14, 2018 at 4:03 PM David Anderson via Dwarf-Discuss <
dwarf-discuss at lists.dwarfstd.org> wrote:

> I've just pushed a new version of libdwarf/dwarfdump to sourceforge.
> I mention this here  because at least one compiler version is emitting
> an incorrect .debug_str_offsets section (I believe).
>
> You can get the source with
>    git clone git://git.code.sf.net/p/libdwarf/code
>
> The new  dwarfdump option --print-str-offsets
> will cause dwarfdump to access new libdwarf functions to
> print   the DWARF5 .debug_str_offsets data (headers and everything)
> independently of any other
> section.
>
> The example I have in hand (the only one so far) seems to have
> the content of the section a bit wrong: the header of the only
> table in it has an incorrect length value.  Dwarfdump and
> libdwarf report the apparent botch.  Hmm.
> The compiler creating  this example may have
> already been fixed (I don't know).
>
> Any smallish object files with DWARF5 .debug_str_offsets that
> can be put into the public regression tests base would be most
> welcome.  Especially one with multiple headers, such as
> would most likely be created by a link step.
>
> For information:
>    https://www.prevanders.net/dwarf.html
> and click on Work In Progress for what has
> happened recently.
>
> Regrettably, at present using cmake to build is not
> working.    We hope to fix that before long.
>     ./configure ; make
> works, of course.
>
> DavidA.
>
> _______________________________________________
> Dwarf-Discuss mailing list
> Dwarf-Discuss at lists.dwarfstd.org
> http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/pipermail/dwarf-discuss-dwarfstd.org/attachments/20180416/897b041f/attachment.html>



More information about the Dwarf-discuss mailing list