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 <[email protected]> > + > + * 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 <[email protected]> > + > + * 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
