glibc 2.5: fix the strlen() issues on big endian EABI, thanks to Lennert for tracking...
authorKoen Kooi <koen@openembedded.org>
Tue, 1 May 2007 16:54:35 +0000 (16:54 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 1 May 2007 16:54:35 +0000 (16:54 +0000)
* This is not a proper fix, we still need to find out wht __ARMEB__ isn't defined

packages/glibc/glibc-2.5/armeb-strlen.patch [new file with mode: 0644]
packages/glibc/glibc_2.5.bb

diff --git a/packages/glibc/glibc-2.5/armeb-strlen.patch b/packages/glibc/glibc-2.5/armeb-strlen.patch
new file mode 100644 (file)
index 0000000..69a2e59
--- /dev/null
@@ -0,0 +1,11 @@
+--- /tmp/strlen.S      2007-05-01 18:32:48.000000000 +0200
++++ glibc-2.5/ports/sysdeps/arm/strlen.S       2007-05-01 18:33:29.665251000 +0200
+@@ -24,6 +24,8 @@
+  * exit: r0 = len
+  */
++#define __ARMEB__
++
+ ENTRY(strlen)
+       bic     r1, r0, $3              @ addr of word containing first byte
+       ldr     r2, [r1], $4            @ get the first word
index 8cd4c2e..f098169 100644 (file)
@@ -76,6 +76,9 @@ SRC_URI_append_powerpc= " file://ppc-sfp-machine.patch;patch=1 \
                           file://ppc-ports-ld-nofpu-20070114.patch;patch=1 \
                           file://powerpc-sqrt-hack.diff;patch=1""
 
+#armeb needs an extra define
+SRC_URI_append_armeb = " file://armeb-strlen.patch;patch=1 "
+
 S = "${WORKDIR}/glibc-${PV}"
 B = "${WORKDIR}/build-${TARGET_SYS}"