Use uLong on compressed_size when using zlib.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Oct 2010 19:56:00 +0000 (19:56 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Oct 2010 19:56:00 +0000 (19:56 +0000)
2010-10-29  Pawel Sikora  <pluto@pld-linux.org>

PR binutils/12075
* compress.c (bfd_compress_section_contents): Use uLong on
compressed_size.

bfd/ChangeLog
bfd/compress.c

index 430ead3616aef70f596f117e4ab87ef0207be14b..14f224d9a2f9cf072e29c3c44295478e7f998d8f 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-29  Pawel Sikora  <pluto@pld-linux.org>
+
+       PR binutils/12075
+       * compress.c (bfd_compress_section_contents): Use uLong on
+       compressed_size.
+
 2010-10-29  Joseph Myers  <joseph@codesourcery.com>
 
        * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
index 171de77f38e2e8d4dcac22c3e39d5a8440f23e11..bdaa3c475107111e2c6514da7d41e6be38fb6593 100644 (file)
@@ -94,7 +94,7 @@ bfd_compress_section_contents (bfd *abfd ATTRIBUTE_UNUSED,
   bfd_set_error (bfd_error_invalid_operation);
   return FALSE;
 #else
-  bfd_size_type compressed_size;
+  uLong compressed_size;
   bfd_byte *compressed_buffer;
 
   compressed_size = compressBound (uncompressed_size) + 12;