This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Make bfd_compress_section_contents static
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Wed, 18 Mar 2015 11:21:19 -0700
- Subject: [PATCH] Make bfd_compress_section_contents static
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
I checked in this patch to make bfd_compress_section_contents static.
H.J.
---
* compress.c (bfd_compress_section_contents): Make it static.
* bfd/bfd-in2.h: Regenerated.
---
bfd/ChangeLog | 5 +++++
bfd/bfd-in2.h | 4 ----
bfd/compress.c | 28 ++++++++--------------------
3 files changed, 13 insertions(+), 24 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index dcc93fd..0bc727d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ * compress.c (bfd_compress_section_contents): Make it static.
+ * bfd/bfd-in2.h: Regenerated.
+
2015-03-18 Eric Youngdale <eyoungdale@ptc.com>
PR ld/16598
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 2d2e7ac..e170dd9 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -7283,10 +7283,6 @@ bfd_byte *bfd_simple_get_relocated_section_contents
(bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
/* Extracted from compress.c. */
-bfd_boolean bfd_compress_section_contents
- (bfd *abfd, asection *section, bfd_byte *uncompressed_buffer,
- bfd_size_type uncompressed_size);
-
bfd_boolean bfd_get_full_section_contents
(bfd *abfd, asection *section, bfd_byte **ptr);
diff --git a/bfd/compress.c b/bfd/compress.c
index ad1fbee..fa791de 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -63,28 +63,16 @@ decompress_contents (bfd_byte *compressed_buffer,
}
#endif
-/*
-FUNCTION
- bfd_compress_section_contents
-
-SYNOPSIS
- bfd_boolean bfd_compress_section_contents
- (bfd *abfd, asection *section, bfd_byte *uncompressed_buffer,
- bfd_size_type uncompressed_size);
-
-DESCRIPTION
-
- 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.
+/* 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.
- Return @code{TRUE} if the full section contents is compressed
- successfully.
-*/
+ Return @code{TRUE} if the full section contents is compressed
+ successfully. */
-bfd_boolean
+static bfd_boolean
bfd_compress_section_contents (bfd *abfd ATTRIBUTE_UNUSED,
sec_ptr sec ATTRIBUTE_UNUSED,
bfd_byte *uncompressed_buffer ATTRIBUTE_UNUSED,
--
1.9.3