This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR binutils/12075: binutils doesn't build with zlib-devel-1.2.5
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Fri, 29 Oct 2010 12:57:16 -0700
- Subject: PATCH: PR binutils/12075: binutils doesn't build with zlib-devel-1.2.5
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
We are calling compress from zlib. We should type from zlib. I checked
in this patch as an obvious fix.
H.J.
---
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 430ead3..14f224d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/compress.c b/bfd/compress.c
index 171de77..bdaa3c4 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -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;