[patch] expanding tables for bfd/hash.c

DJ Delorie dj@redhat.com
Wed May 3 03:52:00 GMT 2006


> A quicker alternative might be to leave the default unchanged.  There
> are a lot of tests that depend on symbol table order, and some only run
> natively.

I assume none (or few) tests have more than 4k symbols then?

> How about this?
> 
> 	* hash.c (DEFAULT_SIZE): Revert last change.
> 	(higher_prime_number): Correct test for no larger prime.  Don't
> 	abort on error, instead return 0.  Depopulate primes[].
> 	(bfd_hash_lookup): If we overflow size, refuse to grow table.

That looks like a good change.



More information about the Binutils mailing list