patches/binutils/2.15/250-ld-stabs-tweak.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 31 18:27:27 2008 +0000 (2008-10-31)
changeset 1022 7b3e8b8d392e
parent 745 e445c00d134d
permissions -rw-r--r--
Transform LAN_MIRROR into plain MIRROR:
- it does not have to be in the LAN
- offer mirror preference over upstream
- if selected, the mirror will be scanned before upstream servers
- if not selected, upstream servers will be scanned before the mirror
- I've set up such an internet-accessible mirror
- uClibc snapshot available
- MPFR releases available (the MPFR site is down from time to time)
- update all samples to use my mirror as a failover

/trunk/scripts/functions | 45 16 29 0 +++++--------
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/sh4-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 8 7 1 0 ++
/trunk/samples/arm-unknown-elf/crosstool.config | 8 7 1 0 ++
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 8 7 1 0 ++
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 8 7 1 0 ++
/trunk/samples/armeb-unknown-linux-gnueabi/crosstool.config | 8 7 1 0 ++
/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 8 7 1 0 ++
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/arm-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 8 7 1 0 ++
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 8 7 1 0 ++
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 8 7 1 0 ++
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 8 7 1 0 ++
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 8 7 1 0 ++
/trunk/samples/powerpc-405-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 8 7 1 0 ++
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/arm-unknown-eabi/crosstool.config | 8 7 1 0 ++
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/samples/powerpc-860-linux-gnu/crosstool.config | 8 7 1 0 ++
/trunk/config/global/download.in | 42 25 17 0 +++++++-----
27 files changed, 216 insertions(+), 71 deletions(-)
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
Note that tunable hash table size changes were added after 2.15.  The effect
yann@402
    16
of this change is to make bfd use its default hash table size for the stabs
yann@402
    17
hash as well.
yann@402
    18
yann@402
    19
yann@402
    20
--- binutils-2.15/bfd/stabs.c.old	2004-05-17 15:36:04.000000000 -0400
yann@402
    21
+++ binutils-2.15/bfd/stabs.c	2006-02-09 15:21:56.567014000 -0500
yann@402
    22
@@ -241,9 +241,8 @@
yann@402
    23
 	goto error_return;
yann@402
    24
       /* Make sure the first byte is zero.  */
yann@402
    25
       (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE);
yann@402
    26
-      if (! bfd_hash_table_init_n (&sinfo->includes.root,
yann@402
    27
-				   stab_link_includes_newfunc,
yann@402
    28
-				   251))
yann@402
    29
+      if (! bfd_hash_table_init (&sinfo->includes.root,
yann@402
    30
+				   stab_link_includes_newfunc))
yann@402
    31
 	goto error_return;
yann@402
    32
       sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr");
yann@402
    33
       sinfo->stabstr->flags |= SEC_HAS_CONTENTS | SEC_READONLY | SEC_DEBUGGING;