[PATCH] readelf: Read the decompressed data when processing .zdebug DWARF sections.
Mark Wielaard
mjw at redhat.com
Tue Apr 15 12:23:30 UTC 2014
On Wed, 2014-04-09 at 22:43 +0200, Mark Wielaard wrote:
> readelf uses libdw to open the Dwarf and read some of the DWARF data.
> But it also uses its own parsers to display some of the low-level
> unprocessed data. If the DWARF debug section was zlib compressed it
> should actually use the decompressed section data from libdw instead
> of the raw section data.
>
> Includes a testcase for those sections that couldn't be properly
> displayed when compressed before.
> [...]
> +2014-04-09 Mark Wielaard <mjw at redhat.com>
> +
> + * readelf.c (print_debug_aranges_section): Don't get the raw section
> + data, use the possibly decompressed .[z]debug sectiondata.
> + (print_debug_ranges_section): Likewise.
> + (print_debug_frame_section): Likewise.
> + (print_debug_line_section): Likewise.
> + (print_debug_loc_section): Likewise.
> + (print_debug_macinfo_section): Likewise.
> + (print_debug_macro_section): Likewise.
> [...]
> +2014-04-09 Mark Wielaard <mjw at redhat.com>
> +
> + * run-readelf-zdebug.sh: New test.
> + * testfile-debug.bz2: New testfile.
> + * testfile-zdebug.bz2: New testfile.
> + * Makefile.am (TESTS): Add run-readelf-zdebug.sh if ZLIB.
> + (EXTRA_DIST): Add run-readelf-zdebug.sh, testfile-debug.bz2 and
> + testfile-zdebug.bz2.
I pushed this to master now.
Cheers,
Mark
More information about the elfutils-devel
mailing list