yann@402: Signed-off-by: dank@kegel.com yann@402: yann@402: See http://sourceware.org/ml/binutils/2005-12/msg00270.html yann@402: http://sourceware.org/ml/binutils-cvs/2005-12/msg00139.html yann@402: yann@402: STABS hash table size change, backported from the binutils CVS tree. Here's yann@402: the CVS log comment for the original change: yann@402: yann@402: revision 1.25 yann@402: date: 2005/12/29 10:29:23; author: nickc; state: Exp; lines: +2 -3 yann@402: (_bfd_link_section_stabs): Use bfd_hash_table_init rather than yann@402: bfd_hash_table_init_n(...,251) so that the size of the hash table can be yann@402: controlled by the user. yann@402: yann@402: Note that tunable hash table size changes were added after 2.15. The effect yann@402: of this change is to make bfd use its default hash table size for the stabs yann@402: hash as well. yann@402: yann@402: yann@402: --- binutils-2.15/bfd/stabs.c.old 2004-05-17 15:36:04.000000000 -0400 yann@402: +++ binutils-2.15/bfd/stabs.c 2006-02-09 15:21:56.567014000 -0500 yann@402: @@ -241,9 +241,8 @@ yann@402: goto error_return; yann@402: /* Make sure the first byte is zero. */ yann@402: (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE); yann@402: - if (! bfd_hash_table_init_n (&sinfo->includes.root, yann@402: - stab_link_includes_newfunc, yann@402: - 251)) yann@402: + if (! bfd_hash_table_init (&sinfo->includes.root, yann@402: + stab_link_includes_newfunc)) yann@402: goto error_return; yann@402: sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr"); yann@402: sinfo->stabstr->flags |= SEC_HAS_CONTENTS | SEC_READONLY | SEC_DEBUGGING;