From ae6a0217c573fdf00a40820a325cb988a03271d2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 29 Oct 2010 19:56:00 +0000 Subject: [PATCH] Use uLong on compressed_size when using zlib. 2010-10-29 Pawel Sikora PR binutils/12075 * compress.c (bfd_compress_section_contents): Use uLong on compressed_size. --- bfd/ChangeLog | 6 ++++++ bfd/compress.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 430ead3616a..14f224d9a2f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2010-10-29 Pawel Sikora + + PR binutils/12075 + * compress.c (bfd_compress_section_contents): Use uLong on + compressed_size. + 2010-10-29 Joseph Myers * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check diff --git a/bfd/compress.c b/bfd/compress.c index 171de77f38e..bdaa3c47510 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; -- 2.30.2