1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.16.1/150-stabs-tweak.patch Sun Jan 04 14:35:25 2009 +0000
1.3 @@ -0,0 +1,28 @@
1.4 +Signed-off-by: dank@kegel.com
1.5 +
1.6 +See http://sourceware.org/ml/binutils/2005-12/msg00270.html
1.7 +http://sourceware.org/ml/binutils-cvs/2005-12/msg00139.html
1.8 +
1.9 +STABS hash table size change, backported from the binutils CVS tree. Here's
1.10 +the CVS log comment for the original change:
1.11 +
1.12 +revision 1.25
1.13 +date: 2005/12/29 10:29:23; author: nickc; state: Exp; lines: +2 -3
1.14 +(_bfd_link_section_stabs): Use bfd_hash_table_init rather than
1.15 +bfd_hash_table_init_n(...,251) so that the size of the hash table can be
1.16 +controlled by the user.
1.17 +
1.18 +--- binutils/bfd/stabs.c.old 4 May 2005 15:53:39 -0000 1.24
1.19 ++++ binutils/bfd/stabs.c 29 Dec 2005 10:29:23 -0000 1.25
1.20 +@@ -194,9 +194,8 @@
1.21 + goto error_return;
1.22 + /* Make sure the first byte is zero. */
1.23 + (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE);
1.24 +- if (! bfd_hash_table_init_n (&sinfo->includes,
1.25 +- stab_link_includes_newfunc,
1.26 +- 251))
1.27 ++ if (! bfd_hash_table_init (&sinfo->includes,
1.28 ++ stab_link_includes_newfunc))
1.29 + goto error_return;
1.30 + sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr");
1.31 + if (sinfo->stabstr == NULL)