Skip to contentSkip to conversation

uclibc-git: add two patches to fix build breakage with thumb2

PATCH New Carlo Caione 1 participant 1 message Sep 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uclibc-git: add two patches to fix build breakage with thumb2

uclibc doesn't compile for Thumb2-aware CPUs. Added two patches (from uclibc) to make it compiling.

---
 yocto/meta/recipes-core/uclibc/uclibc-git.inc      |   2 +
 .../add-missing-IT-instruction-for-Thumb2.patch    |  22 ++
 .../move-check-for-BX-to-its-own-header.patch      | 247 +++++++++++++++++++++
 3 files changed, 271 insertions(+)
 create mode 100644 yocto/meta/recipes-core/uclibc/uclibc-git/add-missing-IT-instruction-for-Thumb2.patch
 create mode 100644 yocto/meta/recipes-core/uclibc/uclibc-git/move-check-for-BX-to-its-own-header.patch
yocto/meta/recipes-core/uclibc/uclibc-git.inc +2 -0
index db00ee6..29e3ba3 100644
@@ -23,5 +23,7 @@ SRC_URI = "git://uclibc.org/uClibc.git;branch=master;protocol=git \
 	file://0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch \
 	file://0001-Revert-utent.c-wtent.c-move-functions-from-utxent.c.patch \
 	file://0001-i386-sysdep.h-Remove-STABS_-macros.patch \
+	file://add-missing-IT-instruction-for-Thumb2.patch \
+	file://move-check-for-BX-to-its-own-header.patch \
 	"
 S = "${WORKDIR}/git"
yocto/meta/recipes-core/uclibc/uclibc-git/add-missing-IT-instruction-for-Thumb2.patch new file +22 -0
new file mode 100644
index 0000000..c761d08
@@ -0,0 +1,22 @@
+The conditional load needs to be made part of an IT block on Thumb2
+cores.
+
+Signed-off-by: Will Newton <will.newton at linaro.org>
+---
+ libc/sysdeps/linux/arm/clone.S | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libc/sysdeps/linux/arm/clone.S b/libc/sysdeps/linux/arm/clone.S
+index 98dde22..e73ddb6 100644
+--- a/libc/sysdeps/linux/arm/clone.S
++++ b/libc/sysdeps/linux/arm/clone.S
+@@ -110,6 +110,7 @@ __clone:
+ 	ldr	r4, [sp, #12]
+ 	DO_CALL (clone)
+ 	movs	a1, a1
++	IT(t, ne)
+ 	ldmnefd	sp!, {r4}
+ 	blt	__error
+ 	IT(t, ne)
+-- 
+1.8.1.4
yocto/meta/recipes-core/uclibc/uclibc-git/move-check-for-BX-to-its-own-header.patch new file +247 -0

247 lines not on this page · raw message

Signature · 1 line
1.8.4