* elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.

* exec.c (build_section_table):  Don't abort if no sections.
* sparc-tdep.c (single_step):  Lint.
* utils.c (mrealloc):  Handle realloc (0, size) case here.
This commit is contained in:
John Gilmore
1992-03-31 16:16:41 +00:00
parent 079b2abe97
commit 3b0b92207c
2 changed files with 8 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ elf_symtab_read (abfd, addr, objfile)
if (storage_needed > 0)
{
symbol_table = (asymbol **) bfd_xmalloc (storage_needed);
symbol_table = (asymbol **) xmalloc (storage_needed);
back_to = make_cleanup (free, symbol_table);
number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);