From: nickc Date: Thu, 29 Dec 2005 10:33:40 +0000 (+0000) Subject: (bfd_hash_set_default_size): Add more entries to the hash_size_primes table. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f742e7788cb538a4733225fdaa4a63ac3b1ef946;p=pf3gnuchains%2Fpf3gnuchains3x.git (bfd_hash_set_default_size): Add more entries to the hash_size_primes table. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0465e4bc14..3ea9d5617c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2005-12-29 Nick Clifton + * hash.c (bfd_hash_set_default_size): Add more entries to the + hash_size_primes table. + * stabs.c (_bfd_link_section_stabs): Use bfd_hash_table_init rather than bfd_hash_table_init_n(...,251) so that the size of the hash table can be controlled by the user. diff --git a/bfd/hash.c b/bfd/hash.c index fc3177331b..e53eda1b90 100644 --- a/bfd/hash.c +++ b/bfd/hash.c @@ -492,7 +492,7 @@ bfd_hash_set_default_size (bfd_size_type hash_size) /* Extend this prime list if you want more granularity of hash table size. */ static const bfd_size_type hash_size_primes[] = { - 1021, 4051, 8599, 16699 + 251, 509, 1021, 2039, 4051, 8599, 16699, 32749 }; size_t index;