aboutsummaryrefslogtreecommitdiff
path: root/bfd/compress.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2014-11-06 14:39:58 +0000
committerNick Clifton <nickc@redhat.com>2014-11-06 14:39:58 +0000
commit834107255bbefceb445fa733ebc1ea5d9f41ec7f (patch)
treed4568c90b8576dfb3318bb273a09ee074af5fc97 /bfd/compress.c
parent1fe9dc4519a86b856da7de0837366bbece82f2de (diff)
downloadgdb-834107255bbefceb445fa733ebc1ea5d9f41ec7f.zip
gdb-834107255bbefceb445fa733ebc1ea5d9f41ec7f.tar.gz
gdb-834107255bbefceb445fa733ebc1ea5d9f41ec7f.tar.bz2
Revert changes in previous deltas that introduced new failures into
the linker testsuite. * aoutx.h (slurp_symbol_table): Revert previous delta. (slurp_reloc_table): Likewise. * compress.c (bfd_get_full_section_contents): Remove file size test. * coffgen.c (coff_get_normalized_symtab): Allow zero-sized symtabs and do not complain about linker generated files.
Diffstat (limited to 'bfd/compress.c')
-rw-r--r--bfd/compress.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/bfd/compress.c b/bfd/compress.c
index 6831562..20eef95 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -177,14 +177,6 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
switch (sec->compress_status)
{
case COMPRESS_SECTION_NONE:
- /* PR binutils/17512: Avoid malloc or file reading errors due to
- ridiculous section sizes. But ignore linker created objects
- and bfds with no contents (yet). */
- if (bfd_get_size (abfd) > 0
- && (sec->flags & SEC_LINKER_CREATED) == 0
- && sz > (bfd_size_type) bfd_get_size (abfd))
- return FALSE;
-
if (p == NULL)
{
p = (bfd_byte *) bfd_malloc (sz);