Make bfd_compress_section_contents static
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Mar 2015 18:20:06 +0000 (11:20 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Mar 2015 18:20:06 +0000 (11:20 -0700)
* compress.c (bfd_compress_section_contents): Make it static.
* bfd/bfd-in2.h: Regenerated.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/compress.c

index dcc93fddaafa779ada8a9a73783492d2b11bc971..0bc727d760816e10eb308f57aa9c871ccb955880 100644 (file)
@@ -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
index 2d2e7acc98be59c486c282848d83a7936060f4f5..e170dd97d8747313e5f52acc8749c5fa88abc42b 100644 (file)
@@ -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);
 
index ad1fbee0133d93d289b59a62f7473171fdc937bc..fa791ded2e032981e9c19a2f67eca638f85ff68d 100644 (file)
@@ -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,