aboutsummaryrefslogtreecommitdiff
path: root/bfd/compress.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-03-18 11:20:06 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-03-18 11:20:06 -0700
commit0b0732e13a9a40c9e894cc6aed1e899cff81251e (patch)
tree6f63afb06702037249c5b101771ccbc68b9696c4 /bfd/compress.c
parentd94077e27d279c4ff0ee26bad786f89c350e2aea (diff)
downloadgdb-0b0732e13a9a40c9e894cc6aed1e899cff81251e.zip
gdb-0b0732e13a9a40c9e894cc6aed1e899cff81251e.tar.gz
gdb-0b0732e13a9a40c9e894cc6aed1e899cff81251e.tar.bz2
Make bfd_compress_section_contents static
* compress.c (bfd_compress_section_contents): Make it static. * bfd/bfd-in2.h: Regenerated.
Diffstat (limited to 'bfd/compress.c')
-rw-r--r--bfd/compress.c28
1 files changed, 8 insertions, 20 deletions
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,