1 *** ../binutils-2.24.orig/bfd/compress.c 2014-04-28 16:35:20.429816317 +0100
2 --- bfd/compress.c 2014-04-28 16:36:06.450963028 +0100
9 + #include "safe-ctype.h"
13 *************** bfd_is_section_compressed (bfd *abfd, se
16 compressed = (bfd_get_section_contents (abfd, sec, compressed_buffer, 0, 12)
17 && CONST_STRNEQ ((char*) compressed_buffer, "ZLIB"));
19 + /* Check for the pathalogical case of a debug string section that
20 + contains the string ZLIB.... as the first entry. We assume that
21 + no uncompressed .debug_str section would ever be big enough to
22 + have the first byte of its (big-endian) size be non-zero. */
24 + && strcmp (sec->name, ".debug_str") == 0
25 + && ISPRINT (compressed_buffer[4]))
28 /* Restore compress_status. */
29 sec->compress_status = saved;