This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: PATCH: Speed up ELF section merge
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'H. J. Lu'" <hjl at lucon dot org>
- Cc: <binutils at sources dot redhat dot com>
- Date: Fri, 6 May 2005 16:04:27 +0100
- Subject: RE: PATCH: Speed up ELF section merge
----Original Message----
>From: H. J. Lu
>Sent: 06 May 2005 15:57
>> H.J., IIUIC this patch can't do anything to support the ld command line
>> options --hash-size=<NUMBER> and --reduce-memory-overheads; wouldn't it
>> be worthwhile providing a means of controlling whether it uses a large
>> hash table or not?
>>
>
> I am full on my plate. A patch is more than welcome. Thanks.
I will look at it over the weekend (if I can get --enable-targets=all
working on cygwin....).
Do you think it would be a reasonable approach to define a global flag
variable for the entire bfd library that indicates minimal memory usage is
desired, and a function such as bfd_set_memory_usage_policy() to set it? It
would allow us to make other functions small-memory friendly as we went
along, without changing any existing behaviour.
The only other approach I can think of immediately would be to pass a
parameter all the way down from the bfd_XXX interface function until it
arrives at sec_merge_init, but that seems like a long way down the call
stack to me, so I think it's probably not the right approach.
cheers,
DaveK
--
Can't think of a witty .sigline today....