* srec.c (srec_canonicalize_symtab): Don't alloc when symcount
is zero. Correct return value on error. * mmo.c (mmo_canonicalize_symtab): Likewise. * binary.c (binary_canonicalize_symtab) Correct return on error.
This commit is contained in:
parent
c2c966314b
commit
b9da616afe
4 changed files with 14 additions and 7 deletions
|
@ -169,7 +169,7 @@ binary_canonicalize_symtab (bfd *abfd, asymbol **alocation)
|
|||
|
||||
syms = bfd_alloc (abfd, amt);
|
||||
if (syms == NULL)
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
/* Start symbol. */
|
||||
syms[0].the_bfd = abfd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue