[binutils-gdb] Fix debug section compression so that it is only performed if it would make the section smaller.

sergiodj+buildbot@redhat.com sergiodj+buildbot@redhat.com
Wed Mar 18 18:46:00 GMT 2015


*** TEST RESULTS FOR COMMIT 273a49858fa9c8d73de87167618ef99d70f9731a ***

Author: Jon Turney <jon.turney@dronecode.org.uk>
Branch: master
Commit: 273a49858fa9c8d73de87167618ef99d70f9731a

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.



More information about the Gdb-testers mailing list