diff options
author | Mark Wielaard <[email protected]> | 2015-12-30 14:18:40 +0100 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2016-01-06 14:27:10 +0100 |
commit | c495d754f33bd2ce3eeaaed936d8f045fbf53f30 (patch) | |
tree | a64b525f34ef7084911caafa4fabade4d60897ed /libdw/dwarf_end.c | |
parent | 272018bba1f253bae00b5ba280ad0e0f18c04006 (diff) |
libdw: Use elf_compress[_gnu] to uncompress debug section data.
libdw used its own code for decompressing GNU style .zdebug sections.
Using elf_compress and elf_compress_gnu instead makes it possible to
transparently use either GNU style or ELF style compressed data.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdw/dwarf_end.c')
-rw-r--r-- | libdw/dwarf_end.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libdw/dwarf_end.c b/libdw/dwarf_end.c index 2108063d..6c6d985a 100644 --- a/libdw/dwarf_end.c +++ b/libdw/dwarf_end.c @@ -57,24 +57,6 @@ cu_free (void *arg) } -#if USE_ZLIB -void -internal_function -__libdw_free_zdata (Dwarf *dwarf) -{ - unsigned int gzip_mask = dwarf->sectiondata_gzip_mask; - while (gzip_mask != 0) - { - int i = ffs (gzip_mask); - assert (i > 0); - --i; - assert (i < IDX_last); - free (dwarf->sectiondata[i]); - gzip_mask &= ~(1U << i); - } -} -#endif - int dwarf_end (Dwarf *dwarf) { @@ -110,8 +92,6 @@ dwarf_end (Dwarf *dwarf) /* Free the pubnames helper structure. */ free (dwarf->pubnames_sets); - __libdw_free_zdata (dwarf); - /* Free the ELF descriptor if necessary. */ if (dwarf->free_elf) elf_end (dwarf->elf); |