]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Handle compressed sections and extend -z to cover -x and -p.
authorMark Wielaard <mjw@redhat.com>
Tue, 20 Oct 2015 23:30:44 +0000 (01:30 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 6 Jan 2016 13:27:10 +0000 (14:27 +0100)
commitf5013e83d5c8fcd9309c8976c3f1167d28cd07aa
tree144480f1ea545a6721db2e05b77f2f8f92ca9ee1
parentd22cb04967a2396514abf28cc43e70c037ee9cf2
readelf: Handle compressed sections and extend -z to cover -x and -p.

When printing a (non-string, non-data) section use uncompressed data when
possible. For dumping hex and string sections (-x and -p) -z will dump the
uncompressed data (otherwise the compressed data is dumped).

-z, --decompress           Show compression information for compressed
                           sections (when used with -S); decompress section
                           before dumping data (when used with -p or -x)

Includes test cases for ET_REL files using compressed relocation (target)
debug sections to test libdwfl transparent uncompression of sections.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/readelf.c
tests/ChangeLog
tests/Makefile.am
tests/run-readelf-zdebug-rel.sh [new file with mode: 0755]
tests/run-readelf-zp.sh [new file with mode: 0755]
tests/run-readelf-zx.sh [new file with mode: 0755]
tests/testfile-debug-rel-g.o.bz2 [new file with mode: 0644]
tests/testfile-debug-rel-z.o.bz2 [new file with mode: 0644]
tests/testfile-debug-rel.o.bz2 [new file with mode: 0644]