From f5013e83d5c8fcd9309c8976c3f1167d28cd07aa Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 21 Oct 2015 01:30:44 +0200 Subject: 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 --- tests/testfile-debug-rel-z.o.bz2 | Bin 0 -> 1225 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/testfile-debug-rel-z.o.bz2 (limited to 'tests/testfile-debug-rel-z.o.bz2') diff --git a/tests/testfile-debug-rel-z.o.bz2 b/tests/testfile-debug-rel-z.o.bz2 new file mode 100644 index 00000000..1cdac790 Binary files /dev/null and b/tests/testfile-debug-rel-z.o.bz2 differ -- cgit v1.2.3