mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
* syms.c (_bfd_generic_read_minisymbols): Early return for
no symbols. Patch from FreeBSD folk; exact origin unknown.
This commit is contained in:
parent
29e472bc65
commit
ce9c7f501f
@ -1,3 +1,8 @@
|
||||
2001-12-12 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* syms.c (_bfd_generic_read_minisymbols): Early return for
|
||||
no symbols. Patch from FreeBSD folk; exact origin unknown.
|
||||
|
||||
2001-12-11 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elfcode.h (elf_swap_ehdr_out): Adjust value written for e_shnum
|
||||
|
@ -715,6 +715,8 @@ _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep)
|
||||
storage = bfd_get_symtab_upper_bound (abfd);
|
||||
if (storage < 0)
|
||||
goto error_return;
|
||||
if (storage == 0)
|
||||
return 0;
|
||||
|
||||
syms = (asymbol **) bfd_malloc ((bfd_size_type) storage);
|
||||
if (syms == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user