summaryrefslogtreecommitdiff
path: root/bfd/binary.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-07-26 11:13:59 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-07-26 11:13:59 +0000
commit4cf1ab29a063dec767e1e19cc5bc255c2c469e76 (patch)
treed7176309eda9913cdd7f0b7c1768fee3af67dbdf /bfd/binary.c
parent2775f262f8da03a164efb52574f83abdc046167f (diff)
downloadgdb-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.c2
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;