diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2015-03-18 15:47:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-03-18 15:47:13 +0000 |
commit | 273a49858fa9c8d73de87167618ef99d70f9731a (patch) | |
tree | f003dbb576f1e259d8a68250ba039550f6608fee /binutils | |
parent | 670f82d437c21ec9c8f59a365336163e0381149d (diff) | |
download | gdb-273a49858fa9c8d73de87167618ef99d70f9731a.zip gdb-273a49858fa9c8d73de87167618ef99d70f9731a.tar.gz gdb-273a49858fa9c8d73de87167618ef99d70f9731a.tar.bz2 |
Fix debug section compression so that it is only performed if it would make the section smaller.
PR binutils/18087
gas * doc/as.texinfo: Note that when gas compresses debug sections the
compression is only performed if it makes the section smaller.
* write.c (compress_debug): Do not compress a debug section if
doing so would make it larger.
tests * gas/i386/dw2-compress-1.d: Do not expect the .debug_abbrev or
.debug_info sections to be compressed.
binu * doc/binutils.texi: Note that when objcopy compresses debug
sections the compression is only performed if it makes the section
smaller.
bfd * coffgen.c (make_a_section_from_file): Only prepend a z to a
debug section's name if the section was actually compressed.
* elf.c (_bfd_elf_make_section_from_shdr): Likewise.
* compress.c (bfd_init_section_compress_status): Do not compress
the section if doing so would make it bigger. In such cases leave
the section alone and return COMPRESS_SECTION_NONE.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 8 | ||||
-rw-r--r-- | binutils/doc/binutils.texi | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f59c0d1..5c0efb1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2015-03-18 Jon Turney <jon.turney@dronecode.org.uk> + Nick Clifton <nickc@redhat.com> + + PR binutils/18087 + * doc/binutils.texi: Note that when objcopy compresses debug + sections the compression is only performed if it makes the section + smaller. + 2015-03-10 H.J. Lu <hongjiu.lu@intel.com> PR binutils/18101 diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 22d54be..da50163 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -1844,10 +1844,14 @@ It can also be a useful way of reducing the size of a @option{--just-symbols} linker input file. @item --compress-debug-sections -Compress DWARF debug sections using zlib. +Compress DWARF debug sections using zlib. The debug sections are +renamed to begin with @samp{.zdebug} instead of @samp{.debug}. Note - +if compression would actually make a section @emph{larger} then it is +not compressed or renamed. @item --decompress-debug-sections -Decompress DWARF debug sections using zlib. +Decompress DWARF debug sections using zlib. The original section +names of the compressed sections are restored. @item -V @itemx --version |