]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
(_bfd_link_section_stabs): Use bfd_hash_table_init rather than
authorNick Clifton <nickc@redhat.com>
Thu, 29 Dec 2005 10:29:23 +0000 (10:29 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 29 Dec 2005 10:29:23 +0000 (10:29 +0000)
bfd_hash_table_init_n(...,251) so that the size of the hash table can be
controlled by the user.

bfd/ChangeLog
bfd/stabs.c

index 263073df4eef94e4f9e3884cb009d60b2384d4c4..0465e4bc14ea430954eb8ef191d1f48e1b50ab7e 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-29  Nick Clifton  <nickc@redhat.com>
+
+       * 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.
+
 2005-12-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
index eb610872330a7da333c45bc4823e23c47cc12395..25fae29ccc76331ae1272461729e423207157765 100644 (file)
@@ -194,9 +194,8 @@ _bfd_link_section_stabs (bfd *abfd,
        goto error_return;
       /* Make sure the first byte is zero.  */
       (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE);
-      if (! bfd_hash_table_init_n (&sinfo->includes,
-                                  stab_link_includes_newfunc,
-                                  251))
+      if (! bfd_hash_table_init (&sinfo->includes,
+                                stab_link_includes_newfunc))
        goto error_return;
       sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr");
       if (sinfo->stabstr == NULL)