This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed, PATCH] Update comments in compress.c
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Thu, 9 Apr 2015 12:51:37 -0700
- Subject: [committed, PATCH] Update comments in compress.c
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
zlib source is included. Checked into master.
H.J.
* compress.c (bfd_compress_section_contents): Update comments.
(bfd_init_section_decompress_status): Likewise.
(bfd_init_section_compress_status): Likewise.
---
bfd/ChangeLog | 6 ++++++
bfd/compress.c | 9 +++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 47e5024..95cf8d7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
+ * compress.c (bfd_compress_section_contents): Update comments.
+ (bfd_init_section_decompress_status): Likewise.
+ (bfd_init_section_compress_status): Likewise.
+
+2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
+
* elfxx-target.h (TARGET_BIG_SYM): Add BFD_COMPRESS_GABI to
object_flags.
(TARGET_LITTLE_SYM): Likewise.
diff --git a/bfd/compress.c b/bfd/compress.c
index 17b24e8..7945344 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -64,8 +64,7 @@ decompress_contents (bfd_byte *compressed_buffer,
/* Compress data of the size specified in @var{uncompressed_size}
and pointed to by @var{uncompressed_buffer} using zlib and store
as the contents field. This function assumes the contents
- field was allocated using bfd_malloc() or equivalent. If zlib
- is not installed on this machine, the input is unmodified.
+ field was allocated using bfd_malloc() or equivalent.
Return the uncompressed size if the full section contents is
compressed successfully. Otherwise return 0. */
@@ -449,8 +448,7 @@ DESCRIPTION
DECOMPRESS_SECTION_SIZED.
Return @code{FALSE} if the section is not a valid compressed
- section or zlib is not installed on this machine. Otherwise,
- return @code{TRUE}.
+ section. Otherwise, return @code{TRUE}.
*/
bfd_boolean
@@ -511,8 +509,7 @@ DESCRIPTION
compressed size and set compress_status to COMPRESS_SECTION_DONE.
Return @code{FALSE} if the section is not a valid compressed
- section or zlib is not installed on this machine. Otherwise,
- return @code{TRUE}.
+ section. Otherwise, return @code{TRUE}.
*/
bfd_boolean
--
1.9.3