This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] aout_get_external_symbols, count == zero
- From: msnyder at sonic dot net
- To: binutils at sourceware dot org
- Date: Wed, 8 Aug 2007 15:11:49 -0700 (PDT)
- Subject: Re: [patch] aout_get_external_symbols, count == zero
May I bump this one? Don't remember seeing a response.
2007-07-26 Michael Snyder <msnyder@access-company.com>
* aoutx.h (slurp_symbol_table): Return if count == 0.
Index: aoutx.h
===================================================================
RCS file: /cvs/src/src/bfd/aoutx.h,v
retrieving revision 1.67
diff -p -r1.67 aoutx.h
*** aoutx.h 26 Jul 2007 18:30:28 -0000 1.67
--- aoutx.h 27 Jul 2007 02:05:08 -0000
*************** NAME (aout, slurp_symbol_table) (bfd *ab
*** 1739,1744 ****
--- 1739,1747 ----
return FALSE;
cached_size = obj_aout_external_sym_count (abfd);
+ if (cached_size == 0)
+ return TRUE; /* Nothing to do. */
+
cached_size *= sizeof (aout_symbol_type);
cached = bfd_zmalloc (cached_size);
if (cached == NULL && cached_size != 0)