From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11408 invoked by alias); 20 Jun 2006 16:58:03 -0000 Received: (qmail 11399 invoked by uid 22791); 20 Jun 2006 16:58:02 -0000 X-Spam-Check-By: sourceware.org Received: from omta01ps.mx.bigpond.com (HELO omta01ps.mx.bigpond.com) (144.140.82.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 16:58:01 +0000 Received: from grove.modra.org ([60.226.255.233]) by omta01ps.mx.bigpond.com with ESMTP id <20060620165759.UUEV9971.omta01ps.mx.bigpond.com@grove.modra.org>; Tue, 20 Jun 2006 16:57:59 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id EC0EA1E9340; Wed, 21 Jun 2006 02:27:58 +0930 (CST) Date: Tue, 20 Jun 2006 17:11:00 -0000 From: Alan Modra To: Andreas Schwab Cc: binutils@sourceware.org Subject: Re: bfd_sizeof_headers Message-ID: <20060620165758.GL13901@bubble.grove.modra.org> Mail-Followup-To: Andreas Schwab , binutils@sourceware.org References: <20060619125945.GB13901@bubble.grove.modra.org> <20060620022403.GD13901@bubble.grove.modra.org> <20060620163623.GK13901@bubble.grove.modra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00311.txt.bz2 On Tue, Jun 20, 2006 at 06:49:46PM +0200, Andreas Schwab wrote: > Alan Modra writes: > > + /* If we don't have user supplied phdrs, throw away any > > + previous linker generated program headers. */ > > + if (lang_phdr_list == NULL) > > + elf_tdata (output_bfd)->segment_map = NULL; > > Can this leak significant amount of memory? No. It's on an obstack, so can't be reclaimed easily. -- Alan Modra IBM OzLabs - Linux Technology Centre