Don't compress debug sections smaller than 32 bytes.

2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>

	* write.c (compress_debug): Return if section size is small than
	32 byte.
This commit is contained in:
H.J. Lu 2011-01-19 00:24:23 +00:00
parent c25658875f
commit 6ac88ef38d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
* write.c (compress_debug): Return if section size is smaller
than 32 bytes.
2011-01-18 H.J. Lu <hongjiu.lu@intel.com> 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/12409 PR gas/12409

View File

@ -1359,7 +1359,7 @@ compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED)
flagword flags = bfd_get_section_flags (abfd, sec); flagword flags = bfd_get_section_flags (abfd, sec);
if (seginfo == NULL if (seginfo == NULL
|| sec->size == 0 || sec->size < 32
|| (flags & (SEC_ALLOC | SEC_HAS_CONTENTS)) == SEC_ALLOC) || (flags & (SEC_ALLOC | SEC_HAS_CONTENTS)) == SEC_ALLOC)
return; return;