aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-07 16:30:59 +0000
committerIan Lance Taylor <iant@google.com>2008-03-07 16:30:59 +0000
commit9531704395070a7d130320a065cef6bab6c28b9d (patch)
treeaca4bf7db0fc992639a26d33d860564dbe1793a9
parenta8627968fb4c8ffef2e12f915c0230f8924e3a62 (diff)
downloadgdb-9531704395070a7d130320a065cef6bab6c28b9d.zip
gdb-9531704395070a7d130320a065cef6bab6c28b9d.tar.gz
gdb-9531704395070a7d130320a065cef6bab6c28b9d.tar.bz2
Increase maximum bucket size for dynamic hash tables.
-rw-r--r--gold/dynobj.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index 5581298..b686867 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -687,12 +687,12 @@ Dynobj::compute_bucket_count(const std::vector<uint32_t>& hashcodes,
// based on the number of symbols there are. If there are fewer
// than 3 symbols we use 1 bucket, fewer than 17 symbols we use 3
// buckets, fewer than 37 we use 17 buckets, and so forth. We never
- // use more than 32771 buckets. This is straight from the old GNU
+ // use more than 262147 buckets. This is straight from the old GNU
// linker.
static const unsigned int buckets[] =
{
1, 3, 17, 37, 67, 97, 131, 197, 263, 521, 1031, 2053, 4099, 8209,
- 16411, 32771
+ 16411, 32771, 65537, 131101, 262147
};
const int buckets_count = sizeof buckets / sizeof buckets[0];