aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
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/aoutx.h
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/aoutx.h')
-rw-r--r--bfd/aoutx.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index cb0887a..bef59b4 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -1756,8 +1756,6 @@ NAME (aout, slurp_symbol_table) (bfd *abfd)
return TRUE; /* Nothing to do. */
cached_size *= sizeof (aout_symbol_type);
- if (cached_size >= (bfd_size_type) bfd_get_size (abfd))
- return FALSE;
cached = (aout_symbol_type *) bfd_zmalloc (cached_size);
if (cached == NULL)
return FALSE;
@@ -2309,11 +2307,6 @@ NAME (aout, slurp_reloc_table) (bfd *abfd, sec_ptr asect, asymbol **symbols)
if (reloc_size == 0)
return TRUE; /* Nothing to be done. */
- /* PR binutils/17512: Do not even try to
- load the relocs if their size is corrupt. */
- if (reloc_size + asect->rel_filepos >= (bfd_size_type) bfd_get_size (abfd))
- return FALSE;
-
if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0)
return FALSE;