This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]