summaryrefslogtreecommitdiff
path: root/patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-23 17:08:09 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-23 17:08:09 (GMT)
commitb1e693e40281dc8c451e8892dfcdf55d78a4ade3 (patch)
treec276bc44f23b42895b459efbf2597f4bef378819 /patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch
parent3ad6464ffe38eb15591b404e0749aa89f4074fd1 (diff)
Renamed all patches file names so that locales are now irrelevant to sort the files.
Removed the locale check as it is now irrelevant. Removed the experimental binutils 2.17.50.0.xx: 2.18 is here now.
Diffstat (limited to 'patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch')
-rw-r--r--patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch b/patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch
new file mode 100644
index 0000000..bd6ae7a
--- /dev/null
+++ b/patches/binutils/2.15/800-ld-2.15-stabs-tweak.patch
@@ -0,0 +1,33 @@
+Signed-off-by: dank@kegel.com
+
+See http://sourceware.org/ml/binutils/2005-12/msg00270.html
+http://sourceware.org/ml/binutils-cvs/2005-12/msg00139.html
+
+STABS hash table size change, backported from the binutils CVS tree. Here's
+the CVS log comment for the original change:
+
+revision 1.25
+date: 2005/12/29 10:29:23; author: nickc; state: Exp; lines: +2 -3
+(_bfd_link_section_stabs): Use bfd_hash_table_init rather than
+bfd_hash_table_init_n(...,251) so that the size of the hash table can be
+controlled by the user.
+
+Note that tunable hash table size changes were added after 2.15. The effect
+of this change is to make bfd use its default hash table size for the stabs
+hash as well.
+
+
+--- binutils-2.15/bfd/stabs.c.old 2004-05-17 15:36:04.000000000 -0400
++++ binutils-2.15/bfd/stabs.c 2006-02-09 15:21:56.567014000 -0500
+@@ -241,9 +241,8 @@
+ goto error_return;
+ /* Make sure the first byte is zero. */
+ (void) _bfd_stringtab_add (sinfo->strings, "", TRUE, TRUE);
+- if (! bfd_hash_table_init_n (&sinfo->includes.root,
+- stab_link_includes_newfunc,
+- 251))
++ if (! bfd_hash_table_init (&sinfo->includes.root,
++ stab_link_includes_newfunc))
+ goto error_return;
+ sinfo->stabstr = bfd_make_section_anyway (abfd, ".stabstr");
+ sinfo->stabstr->flags |= SEC_HAS_CONTENTS | SEC_READONLY | SEC_DEBUGGING;