patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch
changeset 745 e445c00d134d
parent 744 4bf8448536d5
child 746 b150d6f590fc
     1.1 --- a/patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch	Mon Jul 28 20:10:34 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,33 +0,0 @@
     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 -Note that tunable hash table size changes were added after 2.15.  The effect
    1.19 -of this change is to make bfd use its default hash table size for the stabs
    1.20 -hash as well.
    1.21 -
    1.22 -
    1.23 ---- binutils-2.15/bfd/stabs.c.old	2004-05-17 15:36:04.000000000 -0400
    1.24 -+++ binutils-2.15/bfd/stabs.c	2006-02-09 15:21:56.567014000 -0500
    1.25 -@@ -241,9 +241,8 @@
    1.26 - 	goto error_return;
    1.27 -       /* Make sure the first byte is zero.  */
    1.28 -       (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE);
    1.29 --      if (! bfd_hash_table_init_n (&sinfo->includes.root,
    1.30 --				   stab_link_includes_newfunc,
    1.31 --				   251))
    1.32 -+      if (! bfd_hash_table_init (&sinfo->includes.root,
    1.33 -+				   stab_link_includes_newfunc))
    1.34 - 	goto error_return;
    1.35 -       sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr");
    1.36 -       sinfo->stabstr->flags |= SEC_HAS_CONTENTS | SEC_READONLY | SEC_DEBUGGING;