diff options
author | Nick Clifton <nickc@redhat.com> | 2011-12-14 16:12:12 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-12-14 16:12:12 +0000 |
commit | a8fbe4c41dbda19bb8920b7e418fd1a4c23b9d3c (patch) | |
tree | 834dea939aba2ec6c09622138529d754d5ee7ef1 /bfd/compress.c | |
parent | 8710adb3e0e2fda1118268dc3559b048e89c95d5 (diff) | |
download | gdb-a8fbe4c41dbda19bb8920b7e418fd1a4c23b9d3c.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/compress.c b/bfd/compress.c index 713e30adc3f..a82a8bc9e3c 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; |