readelf: Check compression status of .debug section data
authorMark Wielaard <mark@klomp.org>
Tue, 10 Jan 2023 17:18:05 +0000 (18:18 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 16 Jan 2023 19:35:45 +0000 (20:35 +0100)
commit61c6accb64ba7424f92d617680a6a61fbb562b57
tree83c24a1113fd1849dec39942be660545f080b344
parentd22b1b207a666f3fef1c9307f969ba1f79ce8f5b
readelf: Check compression status of .debug section data

The various print_debug_*_section functions didn't get the section
data in the same way. Add a new get_debug_elf_data function that
gets the (possibly relocated) section data and that checks (and
warns) if the data might still be compressed in a way that we
cannot decompress.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c