aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-12-29 10:33:40 +0000
committerNick Clifton <nickc@redhat.com>2005-12-29 10:33:40 +0000
commitfaaad84b0e1ba1c010ea8c146d0d561445761879 (patch)
treed618556cd20a607f851a27e964bd80c47db5aa28 /bfd
parent88a670df3ccef0b39df766483754536f2fd8d9e9 (diff)
downloadgdb-faaad84b0e1ba1c010ea8c146d0d561445761879.zip
gdb-faaad84b0e1ba1c010ea8c146d0d561445761879.tar.gz
gdb-faaad84b0e1ba1c010ea8c146d0d561445761879.tar.bz2
(bfd_hash_set_default_size): Add more entries to the hash_size_primes table.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/hash.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0465e4b..3ea9d56 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
2005-12-29 Nick Clifton <nickc@redhat.com>
+ * 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 fc31773..e53eda1 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;