aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-10 19:25:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-10 19:25:05 +0000
commit67d9cecb23b9dd40f71f1871ed43c4f97cddcc2b (patch)
treedd9e9fda0eb68ed1b0aa1320bd4c13089aa9acc2 /toolchain
parenta0071bba09600c1658027e077e66232d2ee32553 (diff)
downloadmaster-187ad058-67d9cecb23b9dd40f71f1871ed43c4f97cddcc2b.tar.gz
master-187ad058-67d9cecb23b9dd40f71f1871ed43c4f97cddcc2b.tar.bz2
master-187ad058-67d9cecb23b9dd40f71f1871ed43c4f97cddcc2b.zip
uClibc: fix strrchr on i386
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18016 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch b/toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch
new file mode 100644
index 0000000000..c47327a1b0
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.30.1/420-i386_strrchr_fix.patch
@@ -0,0 +1,11 @@
+--- a/libc/string/i386/strrchr.c
++++ b/libc/string/i386/strrchr.c
+@@ -45,7 +45,7 @@ char *strrchr(const char *s, int c)
+ "leal -1(%%esi),%0\n"
+ "2:\ttestb %%al,%%al\n\t"
+ "jne 1b"
+- :"=g" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
++ :"=r" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
+ return __res;
+ }
+ libc_hidden_def(strrchr)