Fix debug section compression so that it is only performed if it would make the secti...
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 18 Mar 2015 15:47:13 +0000 (15:47 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 18 Mar 2015 15:47:13 +0000 (15:47 +0000)
commit273a49858fa9c8d73de87167618ef99d70f9731a
treef003dbb576f1e259d8a68250ba039550f6608fee
parent670f82d437c21ec9c8f59a365336163e0381149d
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.
bfd/ChangeLog
bfd/coffgen.c
bfd/compress.c
bfd/elf.c
binutils/ChangeLog
binutils/doc/binutils.texi
gas/ChangeLog
gas/doc/as.texinfo
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/dw2-compress-1.d
gas/write.c
This page took 0.027816 seconds and 4 git commands to generate.