aboutsummaryrefslogtreecommitdiff
path: root/bfd/binary.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-07-26 11:13:59 +0000
committerAlan Modra <amodra@gmail.com>2007-07-26 11:13:59 +0000
commitb9da616afe44eb7d00a669dad47bc6860e9b23d3 (patch)
treec277c948f1400b1d03e3eb1f4e3280d938a1bed4 /bfd/binary.c
parentc2c966314bffced41c51b7bd0562c1d7a5c679ea (diff)
downloadgdb-b9da616afe44eb7d00a669dad47bc6860e9b23d3.zip
gdb-b9da616afe44eb7d00a669dad47bc6860e9b23d3.tar.gz
gdb-b9da616afe44eb7d00a669dad47bc6860e9b23d3.tar.bz2
* 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 38d0cc3..c4aec2b 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;