diff options
author | Nick Clifton <nickc@redhat.com> | 2015-05-15 17:16:31 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-05-15 17:16:31 +0100 |
commit | 0e602686df5677fee06cbd1718b4a7aa5379cd2a (patch) | |
tree | 728d4833b4bb267e64d627bd7982fcddee260ab5 /binutils/testsuite/binutils-all/readelf.z | |
parent | Fix gdb.mi/mi-nsmoribund.exp timeouts (diff) | |
download | binutils-gdb-0e602686df5677fee06cbd1718b4a7aa5379cd2a.tar.gz binutils-gdb-0e602686df5677fee06cbd1718b4a7aa5379cd2a.tar.bz2 binutils-gdb-0e602686df5677fee06cbd1718b4a7aa5379cd2a.zip |
Add --decompress option to readelf to decompress sections before they are dumped.
bin * readelf.c (options): Add "decompress".
(usage): Mention -z/--decompress.
(parse_args): Handle -z.
(uncompress_section_contents): Move to earlier in the file.
(dump_section_as_strings): If requested, decompress the section
before dumping.
(dump_section_as_bytes): Likewise.
* doc/binutils.texi: Document the new option.
tests * binutils-all/z.s: New test. Checks the --decompress option to
readelf.
* binutils-all/readelf.exp: Run the test.
* binutils-all/readelf.z: Expected output from readelf.
Diffstat (limited to 'binutils/testsuite/binutils-all/readelf.z')
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.z | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/readelf.z b/binutils/testsuite/binutils-all/readelf.z new file mode 100644 index 00000000000..08434447625 --- /dev/null +++ b/binutils/testsuite/binutils-all/readelf.z @@ -0,0 +1,8 @@ +Hex dump of section '.debug_loc': + 0x00000000 00000000 00000000 01005000 00000000 ..........P..... + 0x00000010 00000004 00f30150 9f000000 00000000 .......P........ + 0x00000020 00000000 00000000 00010051 00000000 ...........Q.... + 0x00000030 00000000 0300717f 9f000000 00000000 ......q......... + 0x00000040 000b0070 0020f301 51227000 229f0000 ...p. ..Q"p."... + 0x00000050 00000000 00000b00 70002070 0022f301 ........p. p.".. + 0x00000060 51229f00 00000000 000000 Q"......... |