summaryrefslogtreecommitdiff
path: root/patches/glibc/2.3.6/160-glibc-2.3.5-sh-memset.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/glibc/2.3.6/160-glibc-2.3.5-sh-memset.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/glibc/2.3.6/160-glibc-2.3.5-sh-memset.patch')
-rw-r--r--patches/glibc/2.3.6/160-glibc-2.3.5-sh-memset.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/glibc/2.3.6/160-glibc-2.3.5-sh-memset.patch b/patches/glibc/2.3.6/160-glibc-2.3.5-sh-memset.patch
new file mode 100644
index 0000000..1ccc1e1
--- /dev/null
+++ b/patches/glibc/2.3.6/160-glibc-2.3.5-sh-memset.patch
@@ -0,0 +1,30 @@
+From:
+ http://sources.redhat.com/ml/libc-alpha/2005-07/msg00051.html
+ http://sources.redhat.com/ml/crossgcc/2005-10/msg00035.html
+
+Message-ID: <434576E1.6020305@sscd.de>
+Date: Thu, 06 Oct 2005 21:11:29 +0200
+From: Alexander Sieb <sieb at sscd dot de>
+To: crossgcc at sourceware dot org
+Subject: Crosstool sh4-linux-gcc-4.0.2-glibc-2.3.5 patches
+
+On sh[34]-linux, memset function does not work if 2nd argument is negative
+and 3rd argument is greater than 12.
+for example, memset(ptr, "\xda", 20) sets 0xff instead of 0xda.
+
+Attached patch fixes this problem.
+
+ * sysdeps/sh/memset.S (memset): Correct 2nd argument handling.
+
+--- glibc-2.3.5.old/sysdeps/sh/memset.S 29 Apr 2003 22:47:18 -0000 1.4
++++ glibc-2.3.5/sysdeps/sh/memset.S 23 Jul 2005 08:37:21 -0000
+@@ -28,6 +28,7 @@ ENTRY(memset)
+ bt.s L_byte_loop_init
+ mov r4,r7
+
++ extu.b r5,r5
+ swap.b r5,r1
+ or r1,r5
+ swap.w r5,r1
+
+Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>