This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: parallelized 'ld'?
Alan Modra <amodra@bigpond.net.au> writes:
> On Tue, Aug 26, 2003 at 02:04:31PM -0400, DJ Delorie wrote:
> >
> > > Automatically expanding hashtables when they reach ludicrous overload
> > > levels isn't that hard -- I've been doing it without a second thought
> > > in everything I've written for the last twenty years. No?
> >
> > Here's a quick patch to implement that, at least in a naive way. See
>
> I'd suggest starting with a smaller table size. Many object files only
> have a small number of symbols. For example, I took a look at a glibc
> build and found the average symbol table size for .o files was only 27
> symbols. Many of these are not globals so won't find their way into
> the linker hash table.
But we don't have one hash table per object file. We have one hash
table for the entire link. A single overly large hash table, within
reason, is harmless.
Ian