aboutsummaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-05-15 17:16:31 +0100
committerNick Clifton <nickc@redhat.com>2015-05-15 17:16:31 +0100
commit0e602686df5677fee06cbd1718b4a7aa5379cd2a (patch)
tree728d4833b4bb267e64d627bd7982fcddee260ab5 /binutils/doc
parent4e63d0ac896b6036edd8e2c09a4dac7aa16a46d1 (diff)
downloadgdb-0e602686df5677fee06cbd1718b4a7aa5379cd2a.zip
gdb-0e602686df5677fee06cbd1718b4a7aa5379cd2a.tar.gz
gdb-0e602686df5677fee06cbd1718b4a7aa5379cd2a.tar.bz2
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/doc')
-rw-r--r--binutils/doc/binutils.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 601de48..619c28e 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -4344,6 +4344,7 @@ readelf [@option{-a}|@option{--all}]
[@option{-x} <number or name>|@option{--hex-dump=}<number or name>]
[@option{-p} <number or name>|@option{--string-dump=}<number or name>]
[@option{-R} <number or name>|@option{--relocated-dump=}<number or name>]
+ [@option{-z}|@option{--decompress}]
[@option{-c}|@option{--archive-index}]
[@option{-w[lLiaprmfFsoRt]}|
@option{--debug-dump}[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]]
@@ -4492,6 +4493,12 @@ Displays the contents of the indicated section as printable strings.
A number identifies a particular section by index in the section table;
any other string identifies all sections with that name in the object file.
+@item -z
+@itemx --decompress
+Requests that the section(s) being dumped by @option{x}, @option{R} or
+@option{p} options are decompressed before being displayed. If the
+section(s) are not compressed then they are displayed as is.
+
@item -c
@itemx --archive-index
@cindex Archive file symbol index information