[patch] aout_get_external_symbols, count == zero

msnyder@sonic.net msnyder@sonic.net
Wed Aug 8 22:11:00 GMT 2007


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)




More information about the Binutils mailing list