yann@1: Signed-off-by: dank@kegel.com yann@1: yann@1: See http://sourceware.org/ml/binutils/2005-12/msg00270.html yann@1: http://sourceware.org/ml/binutils-cvs/2005-12/msg00139.html yann@1: yann@1: STABS hash table size change, backported from the binutils CVS tree. Here's yann@1: the CVS log comment for the original change: yann@1: yann@1: revision 1.25 yann@1: date: 2005/12/29 10:29:23; author: nickc; state: Exp; lines: +2 -3 yann@1: (_bfd_link_section_stabs): Use bfd_hash_table_init rather than yann@1: bfd_hash_table_init_n(...,251) so that the size of the hash table can be yann@1: controlled by the user. yann@1: yann@1: --- binutils/bfd/stabs.c.old 4 May 2005 15:53:39 -0000 1.24 yann@1: +++ binutils/bfd/stabs.c 29 Dec 2005 10:29:23 -0000 1.25 yann@1: @@ -194,9 +194,8 @@ yann@1: goto error_return; yann@1: /* Make sure the first byte is zero. */ yann@1: (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE); yann@1: - if (! bfd_hash_table_init_n (&sinfo->includes, yann@1: - stab_link_includes_newfunc, yann@1: - 251)) yann@1: + if (! bfd_hash_table_init (&sinfo->includes, yann@1: + stab_link_includes_newfunc)) yann@1: goto error_return; yann@1: sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr"); yann@1: if (sinfo->stabstr == NULL)