patches/binutils/2.16.1/150-stabs-tweak.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:28:10 2011 +0200 (2011-08-02)
changeset 2590 b64cfb67944e
permissions -rw-r--r--
scripts/functions: svn retrieval first tries the mirror for tarballs

The svn download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via svn.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard svn retrieval will kick in.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@402
     1
Signed-off-by: dank@kegel.com
yann@402
     2
yann@402
     3
See http://sourceware.org/ml/binutils/2005-12/msg00270.html
yann@402
     4
http://sourceware.org/ml/binutils-cvs/2005-12/msg00139.html
yann@402
     5
yann@402
     6
STABS hash table size change, backported from the binutils CVS tree.  Here's
yann@402
     7
the CVS log comment for the original change:
yann@402
     8
yann@402
     9
revision 1.25
yann@402
    10
date: 2005/12/29 10:29:23;  author: nickc;  state: Exp;  lines: +2 -3
yann@402
    11
(_bfd_link_section_stabs): Use bfd_hash_table_init rather than
yann@402
    12
bfd_hash_table_init_n(...,251) so that the size of the hash table can be
yann@402
    13
controlled by the user.
yann@402
    14
yann@402
    15
--- binutils/bfd/stabs.c.old	4 May 2005 15:53:39 -0000	1.24
yann@402
    16
+++ binutils/bfd/stabs.c	29 Dec 2005 10:29:23 -0000	1.25
yann@402
    17
@@ -194,9 +194,8 @@
yann@402
    18
 	goto error_return;
yann@402
    19
       /* Make sure the first byte is zero.  */
yann@402
    20
       (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE);
yann@402
    21
-      if (! bfd_hash_table_init_n (&sinfo->includes,
yann@402
    22
-				   stab_link_includes_newfunc,
yann@402
    23
-				   251))
yann@402
    24
+      if (! bfd_hash_table_init (&sinfo->includes,
yann@402
    25
+				 stab_link_includes_newfunc))
yann@402
    26
 	goto error_return;
yann@402
    27
       sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr");
yann@402
    28
       if (sinfo->stabstr == NULL)