From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6680 invoked by alias); 19 Mar 2005 00:18:25 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 5678 invoked from network); 19 Mar 2005 00:17:41 -0000 Received: from unknown (HELO omta03ps.mx.bigpond.com) (144.140.82.155) by sourceware.org with SMTP; 19 Mar 2005 00:17:41 -0000 Received: from modra.org ([144.136.221.26]) by omta03ps.mx.bigpond.com with ESMTP id <20050319001739.EJJY21002.omta03ps.mx.bigpond.com@modra.org>; Sat, 19 Mar 2005 00:17:39 +0000 Received: by bubble.modra.org (Postfix, from userid 500) id 2AA2C19FF58; Sat, 19 Mar 2005 10:47:39 +1030 (CST) Date: Sat, 19 Mar 2005 01:51:00 -0000 From: Alan Modra To: "H. J. Lu" Cc: Nick Clifton , binutils@sources.redhat.com Subject: Re: Slow lang_output_section_find_1 Message-ID: <20050319001739.GG21148@bubble.modra.org> Mail-Followup-To: "H. J. Lu" , Nick Clifton , binutils@sources.redhat.com References: <20050317180506.GA7918@lucon.org> <423AA6DF.4080405@redhat.com> <20050318131431.GA21148@bubble.modra.org> <20050318193325.GA32010@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050318193325.GA32010@lucon.org> User-Agent: Mutt/1.4i X-SW-Source: 2005-03/txt/msg00562.txt.bz2 On Fri, Mar 18, 2005 at 11:33:25AM -0800, H. J. Lu wrote: > With Alan's fix to lang_insert_orphan, lang_output_section_find_1 > becomes the most time consuming part of ld: Yes, I meant to comment on that last night. We need to do something about the lang_output_section_statement list. A hash would work, but it seems silly to have a bfd section hash that duplicates most if not all entries that would be in the lang_output_section_statement list. Hmm.. Probably best not to be too clever. -- Alan Modra IBM OzLabs - Linux Technology Centre