aboutsummaryrefslogtreecommitdiff
path: root/bfd/compress.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-12-14 16:12:13 +0000
committerNick Clifton <nickc@redhat.com>2011-12-14 16:12:13 +0000
commit0d13c96b214428affc33281d6d119a873c45acee (patch)
tree6eb7565e1c50f28b760697df8e35b7b5229c0737 /bfd/compress.c
parent1963ff96820f35bddc85eb409caca40810cbcf57 (diff)
downloadgdb-0d13c96b214428affc33281d6d119a873c45acee.zip
gdb-0d13c96b214428affc33281d6d119a873c45acee.tar.gz
gdb-0d13c96b214428affc33281d6d119a873c45acee.tar.bz2
When computing checksums, skip the contents of sections with the SHT_NOBITS type.
Revert change to compress.c
Diffstat (limited to 'bfd/compress.c')
-rw-r--r--bfd/compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/compress.c b/bfd/compress.c
index 713e30a..a82a8bc 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -181,7 +181,7 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
case COMPRESS_SECTION_NONE:
if (p == NULL)
{
- p = (bfd_byte *) bfd_zmalloc (sz);
+ p = (bfd_byte *) bfd_malloc (sz);
if (p == NULL)
return FALSE;
}
@@ -221,7 +221,7 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
if (!ret)
goto fail_compressed;
- uncompressed_buffer = (bfd_byte *) bfd_zmalloc (uncompressed_size);
+ uncompressed_buffer = (bfd_byte *) bfd_malloc (uncompressed_size);
if (uncompressed_buffer == NULL)
goto fail_compressed;