diff options
author | Alan Modra <amodra@bigpond.net.au> | 2007-07-26 11:13:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2007-07-26 11:13:59 +0000 |
commit | 4cf1ab29a063dec767e1e19cc5bc255c2c469e76 (patch) | |
tree | d7176309eda9913cdd7f0b7c1768fee3af67dbdf /bfd/binary.c | |
parent | 2775f262f8da03a164efb52574f83abdc046167f (diff) | |
download | gdb-4cf1ab29a063dec767e1e19cc5bc255c2c469e76.tar.gz |
* 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.
Diffstat (limited to 'bfd/binary.c')
-rw-r--r-- | bfd/binary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/binary.c b/bfd/binary.c index 38d0cc3fd4e..c4aec2ba615 100644 --- a/bfd/binary.c +++ b/bfd/binary.c @@ -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; |