This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Slow _bfd_strip_section_from_output
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 3 May 2005 10:04:51 +0930
- Subject: Re: Slow _bfd_strip_section_from_output
- References: <20050430195029.GC17821@lucon.org>
On Sat, Apr 30, 2005 at 12:50:29PM -0700, H. J. Lu wrote:
> _bfd_strip_section_from_output is known to be very slow:
>
> http://sourceware.org/ml/binutils/2005-03/msg00826.html
>
> It scans every section in all input files to find a match. We do
> have link_order_head/link_order_tail. But they aren't available
> when _bfd_strip_section_from_output is called. Can we build them
> when we assign the output sections and fix them up before we need
> them for output?
Yes, that's what I suggested in
http://sourceware.org/ml/binutils/2005-03/msg00827.html
--
Alan Modra
IBM OzLabs - Linux Technology Centre