mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
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:
parent
c25658875f
commit
6ac88ef38d
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user