diff options
author | Nick Clifton <nickc@redhat.com> | 2023-11-14 10:57:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-11-14 10:57:58 +0000 |
commit | fab62191f84583780c2c6d024d0e583400881770 (patch) | |
tree | 8d3f4bec0f333cfab0808a08f8e435cdc2bc9171 /sim/sh | |
parent | 319b460545dc79280e2904dcc280057cf71fb753 (diff) | |
download | gdb-fab62191f84583780c2c6d024d0e583400881770.zip gdb-fab62191f84583780c2c6d024d0e583400881770.tar.gz gdb-fab62191f84583780c2c6d024d0e583400881770.tar.bz2 |
Improve objdump's handling of compressed sections.
PR 31062
* objdump.c (decompressed_dumps): New local variable. (usage): Mention the -z/--decompress option. (long_options): Add --decompress. (dump_section_header): Add "COMPRESSED" to the Flags field of any compressed section. (dump_section): Warn users when dumping a compressed section. (display_any_bfd): Decompress the section if decompressed_dumps is true. (main): Handle the -z/--decompress option.
* NEWS: Mention the new feature.
* doc/binutils.texi: Document the new feature.
* testsuite/binutils-all/objdump.s: Update expected output.
* testsuite/binutils-all/objdump.exp: Add test of -Z -s.
* testsuite/binutils-all/objdump.Zs: New file.
* readelf.c (maybe_expand_or_relocate_section): New function. Contains common code found in dump functions. Adds a note message if a compressed section is not being decompressed. (dump_section_as_strings): Use new function. (dump_section_as_bytes): Likewise.
Diffstat (limited to 'sim/sh')
0 files changed, 0 insertions, 0 deletions