Browse Source

2007-07-27 Michael Snyder <msnyder@access-company.com>

* aoutx.h (slurp_symbol_table): Return if count == 0.
binutils-2_18-branch
Michael Snyder 19 years ago
parent
commit
87b3278031
  1. 2
      bfd/ChangeLog
  2. 5
      bfd/aoutx.h

2
bfd/ChangeLog

@ -1,5 +1,7 @@
2007-07-27 Michael Snyder <msnyder@access-company.com>
* aoutx.h (slurp_symbol_table): Return if count == 0.
* coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
* elf32-i386.c (elf_i386_check_relocs): Check for null pointer.

5
bfd/aoutx.h

@ -1739,9 +1739,12 @@ NAME (aout, slurp_symbol_table) (bfd *abfd)
return FALSE;
cached_size = obj_aout_external_sym_count (abfd);
if (cached_size == 0)
return TRUE; /* Nothing to do. */
cached_size *= sizeof (aout_symbol_type);
cached = bfd_zmalloc (cached_size);
if (cached == NULL && cached_size != 0)
if (cached == NULL)
return FALSE;
/* Convert from external symbol information to internal. */

Loading…
Cancel
Save