Don't compress empty debug section
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Jul 2012 16:06:34 +0000 (16:06 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Jul 2012 16:06:34 +0000 (16:06 +0000)
commit5a5ed5b0e4fa9e4671b542532dc620c79803e039
tree5d92ce01bfae0b1d03e8b2573bfac404d815df13
parent1e55e04f56d3f1524afd83aa65d5bffdb3795dc7
Don't compress empty debug section

2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/14319
* elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty
debug section.

2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/14319
* binutils-all/compress.exp: Test compress empty debug sections.

* binutils-all/dw2-empty.S: New file.
bfd/ChangeLog
bfd/elf.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/compress.exp
binutils/testsuite/binutils-all/dw2-empty.S [new file with mode: 0644]