aboutsummaryrefslogtreecommitdiff
path: root/patches/binutils/2.15/730-binutils-2.15-solaris-qsort.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-23 17:08:09 +0000
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-23 17:08:09 +0000
commitb1e693e40281dc8c451e8892dfcdf55d78a4ade3 (patch)
treec276bc44f23b42895b459efbf2597f4bef378819 /patches/binutils/2.15/730-binutils-2.15-solaris-qsort.patch
parent3ad6464ffe38eb15591b404e0749aa89f4074fd1 (diff)
downloadcrosstool-ng-b1e693e40281dc8c451e8892dfcdf55d78a4ade3.tar.gz
crosstool-ng-b1e693e40281dc8c451e8892dfcdf55d78a4ade3.tar.bz2
crosstool-ng-b1e693e40281dc8c451e8892dfcdf55d78a4ade3.zip
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/730-binutils-2.15-solaris-qsort.patch')
-rw-r--r--patches/binutils/2.15/730-binutils-2.15-solaris-qsort.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/binutils/2.15/730-binutils-2.15-solaris-qsort.patch b/patches/binutils/2.15/730-binutils-2.15-solaris-qsort.patch
new file mode 100644
index 00000000..5fe36231
--- /dev/null
+++ b/patches/binutils/2.15/730-binutils-2.15-solaris-qsort.patch
@@ -0,0 +1,22 @@
+See http://sources.redhat.com/ml/binutils/2004-06/msg00114.html
+
+--- src/bfd/elflink.c.org 2004-07-05 09:11:42.920597000 -0400
++++ src/bfd/elflink.c 2004-07-05 09:12:59.240847000 -0400
+@@ -2700,7 +2700,7 @@
+ return vdiff > 0 ? 1 : -1;
+ else
+ {
+- long sdiff = h1->root.u.def.section - h2->root.u.def.section;
++ long sdiff = h1->root.u.def.section->id - h2->root.u.def.section->id;
+ if (sdiff != 0)
+ return sdiff > 0 ? 1 : -1;
+ }
+@@ -3954,7 +3954,7 @@
+ i = idx + 1;
+ else
+ {
+- long sdiff = slook - h->root.u.def.section;
++ long sdiff = slook->id - h->root.u.def.section->id;
+ if (sdiff < 0)
+ j = idx;
+ else if (sdiff > 0)