diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-04-05 09:20:02 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-04-05 09:29:57 -0700 |
commit | 77115a4a156052eb1542d16041115cc347da4a07 (patch) | |
tree | 4eed88480e46422071a1d39651e4d27d92fc82a7 /binutils/ChangeLog | |
parent | 317974f6831d8c7af613257e190e0dc3125bc4cf (diff) | |
download | gdb-77115a4a156052eb1542d16041115cc347da4a07.zip gdb-77115a4a156052eb1542d16041115cc347da4a07.tar.gz gdb-77115a4a156052eb1542d16041115cc347da4a07.tar.bz2 |
Add SHF_COMPRESSED support to readelf
This patch updates readelf to dump compression header with
readelf -S -W:
[ 4] .debug_info PROGBITS 00000000 000038 00007d 00 C 0 0 1
readelf -t -W:
[ 4] .debug_info
PROGBITS 00000000 000038 00007d 00 0 0 1
[00000800]: COMPRESSED
ZLIB, 0000009d, 1
It also checks the compression header when decompressing the compressed
section.
* readelf.c (get_elf_section_flags): Support SHF_COMPRESSED.
(get_compression_header): New.
(process_section_headers): Dump compression header if needed.
(uncompress_section_contents): Don't free compressed_buffer here.
(load_specific_debug_section): Free the compressed buffer, update
the section buffer and the section size if uncompress is
successful.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 023bd98..230a58d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,13 @@ +2015-04-05 H.J. Lu <hongjiu.lu@intel.com> + + * readelf.c (get_elf_section_flags): Support SHF_COMPRESSED. + (get_compression_header): New. + (process_section_headers): Dump compression header if needed. + (uncompress_section_contents): Don't free compressed_buffer here. + (load_specific_debug_section): Free the compressed buffer, update + the section buffer and the section size if uncompress is + successful. + 2015-04-02 H.J. Lu <hongjiu.lu@intel.com> * configure: Regenerated. |