From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4147 invoked by alias); 8 Aug 2007 22:11:57 -0000 Received: (qmail 3939 invoked by uid 22791); 8 Aug 2007 22:11:56 -0000 X-Spam-Check-By: sourceware.org Received: from a.mail.sonic.net (HELO a.mail.sonic.net) (64.142.16.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Aug 2007 22:11:51 +0000 Received: from webmail.sonic.net (b.webmail.sonic.net [64.142.100.148]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l78MBnC9008473 for ; Wed, 8 Aug 2007 15:11:50 -0700 Received: from 12.7.175.2 (SquirrelMail authenticated user msnyder) by webmail.sonic.net with HTTP; Wed, 8 Aug 2007 15:11:49 -0700 (PDT) Message-ID: <18028.12.7.175.2.1186611109.squirrel@webmail.sonic.net> Date: Wed, 08 Aug 2007 22:11:00 -0000 Subject: Re: [patch] aout_get_external_symbols, count == zero From: msnyder@sonic.net To: binutils@sourceware.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00116.txt.bz2 May I bump this one? Don't remember seeing a response. 2007-07-26 Michael Snyder * 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)