aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-04-20 12:52:16 +0000
committerAlan Modra <amodra@gmail.com>2011-04-20 12:52:16 +0000
commit8ad17b3a2ce2deb3b6fe599924747a93da5a6a65 (patch)
tree03f4fbe6b24b1676abbec5eefb15ec8ff4c7ab7d /ld
parent7bca32d788b5b06024cf34f01ae6bef16751e5ca (diff)
downloadgdb-8ad17b3a2ce2deb3b6fe599924747a93da5a6a65.zip
gdb-8ad17b3a2ce2deb3b6fe599924747a93da5a6a65.tar.gz
gdb-8ad17b3a2ce2deb3b6fe599924747a93da5a6a65.tar.bz2
bfd/
* hash.c (bfd_default_hash_table_size): Make it an unsigned long. (bfd_hash_table_init_n): Overflow checking. (bfd_hash_set_default_size): Return current size. Take unsigned long arg. Add 65537 to hash_size primes. * bfd-in.h (bfd_hash_set_default_size): Update prototype. * bfd-in2.h: Regenerate. gas/ * hash.c (set_gas_hash_table_size): Use bfd_hash_set_default_size. (hash_new_sized): New function, split out from.. (hash_new): ..here. ld/ * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ld.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 31acf59..ce511ac 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
2011-04-20 Alan Modra <amodra@gmail.com>
+ * ld.h (ld_config_type <hash_table_size>): Make it an unsigned long.
+
+2011-04-20 Alan Modra <amodra@gmail.com>
+
PR ld/12365
* ldfile.c (ldfile_try_open_bfd): Move code creating and switching
to plugin IR BFD..
diff --git a/ld/ld.h b/ld/ld.h
index 564cb73..9391923 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -308,7 +308,7 @@ typedef struct {
bfd_size_type specified_data_size;
/* The size of the hash table to use. */
- bfd_size_type hash_table_size;
+ unsigned long hash_table_size;
/* The maximum page size for ELF. */
bfd_vma maxpagesize;