diff options
author | Nick Clifton <nickc@redhat.com> | 2005-12-29 10:29:23 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-12-29 10:29:23 +0000 |
commit | 88a670df3ccef0b39df766483754536f2fd8d9e9 (patch) | |
tree | b339aa6cea6e476c1c4290e626766c29effb57f9 | |
parent | 36db13e724c784f3fa0e349635435abc4120ba56 (diff) | |
download | gdb-88a670df3ccef0b39df766483754536f2fd8d9e9.zip gdb-88a670df3ccef0b39df766483754536f2fd8d9e9.tar.gz gdb-88a670df3ccef0b39df766483754536f2fd8d9e9.tar.bz2 |
(_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.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/stabs.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 263073d..0465e4b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/stabs.c b/bfd/stabs.c index eb61087..25fae29 100644 --- a/bfd/stabs.c +++ b/bfd/stabs.c @@ -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) |