]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't compress debug sections smaller than 32 bytes.
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Jan 2011 00:24:23 +0000 (00:24 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Jan 2011 00:24:23 +0000 (00:24 +0000)
2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>

* write.c (compress_debug): Return if section size is small than
32 byte.

gas/ChangeLog
gas/write.c

index bb47e720f82a0ff3a87f254a5a9758fda6be69f0..d9cf957812a58642acee1f26ca478eba4c59a401 100644 (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>
 
        PR gas/12409
index aabb96d236c569ce929aa7c1f9d47daf1ba95b4b..5f10bad2230d674f4ee5ec5379aee1b9a0f684c9 100644 (file)
@@ -1359,7 +1359,7 @@ compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED)
   flagword flags = bfd_get_section_flags (abfd, sec);
 
   if (seginfo == NULL
-      || sec->size == 0
+      || sec->size < 32
       || (flags & (SEC_ALLOC | SEC_HAS_CONTENTS)) == SEC_ALLOC)
     return;