[oe-commits] org.oe.dev glibc 2.5: fix the strlen() issues on big endian EABI, thanks to Lennert for tracking down the culprit

koen commit openembedded-commits at lists.openembedded.org
Tue May 1 17:02:32 UTC 2007


glibc 2.5: fix the strlen() issues on big endian EABI, thanks to Lennert for tracking down the culprit
* This is not a proper fix, we still need to find out wht __ARMEB__ isn't defined

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: bc8cfed5e37f251070c62f9cef49b1db7aa86264
ViewMTN: http://monotone.openembedded.org/revision.psp?id=bc8cfed5e37f251070c62f9cef49b1db7aa86264
Files:
1
packages/glibc/glibc-2.5/armeb-strlen.patch
packages/glibc/glibc_2.5.bb
Diffs:

#
# mt diff -rc18c0af8649c4f70f923fefaa9e42158e83c3881 -rbc8cfed5e37f251070c62f9cef49b1db7aa86264
#
# 
# 
# add_file "packages/glibc/glibc-2.5/armeb-strlen.patch"
#  content [bcb2aa148bde40ce6f5ff5e6c983cc91dc46186d]
# 
# patch "packages/glibc/glibc_2.5.bb"
#  from [b724b1acd7564000063ccea720523ab312b5f4b3]
#    to [523f48af428acf87f09981c39bf730894f3c5d78]
# 
============================================================
--- packages/glibc/glibc-2.5/armeb-strlen.patch	bcb2aa148bde40ce6f5ff5e6c983cc91dc46186d
+++ packages/glibc/glibc-2.5/armeb-strlen.patch	bcb2aa148bde40ce6f5ff5e6c983cc91dc46186d
@@ -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
============================================================
--- packages/glibc/glibc_2.5.bb	b724b1acd7564000063ccea720523ab312b5f4b3
+++ packages/glibc/glibc_2.5.bb	523f48af428acf87f09981c39bf730894f3c5d78
@@ -76,6 +76,9 @@ SRC_URI_append_powerpc= " file://ppc-sfp
                           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}"
 






More information about the Openembedded-commits mailing list