This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] Armv7 libgloss fix.
- From: Paul Brook <paul at codesourcery dot com>
- To: newlib at sourceware dot org
- Date: Thu, 24 Aug 2006 02:04:39 +0100
- Subject: [patch] Armv7 libgloss fix.
The patch below allows building libgloss for Armv7 (ie. Thumb-only).
A Thumb-2 capable kernel/toolchain should also be able to handle Thumb entry
points.
Ok?
Paul
2006-08-24 Paul Brook <paul@codesourcery.com>
* arm/linux-crt0.c: Disable Arm stub for Thumb-2.
Index: libgloss/arm/linux-crt0.c
===================================================================
RCS file: /var/cvsroot/src-cvs/src/libgloss/arm/linux-crt0.c,v
retrieving revision 1.1
diff -u -p -r1.1 linux-crt0.c
--- libgloss/arm/linux-crt0.c 5 Jul 2006 15:24:30 -0000 1.1
+++ libgloss/arm/linux-crt0.c 24 Aug 2006 00:24:01 -0000
@@ -11,7 +11,7 @@
static int _main(int argc, char *argv[]) __attribute__((noreturn));
-#if __thumb__
+#if __thumb__ && !__thumb2__
asm("\n"
".code 32\n"
".global _start\n"