Has anyone successfully built glibc with "-mthumb-interwork"?

I've been working with it for a couple of hours, with
glibc 2.2.5
gcc 3.0.3
binutils 2.11.2

I applied the following patch to glibc to make it compile without thumb

***********

diff -ur glibc-2.2.5.orig/sysdeps/unix/sysv/linux/configure
glibc-2.2.5/sysdeps/unix/sysv/linux/configure
--- glibc-2.2.5.orig/sysdeps/unix/sysv/linux/configure  Mon Jan 21
04:27:33 2002
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/configure       Tue Feb 19
09:32:52 2002
@@ -52,6 +52,10 @@
# kernel headers are young enough.  Additionally we have minimal
# kernel versions for some architectures.
case "$machine" in
+  arm*)
+    arch_minimum_kernel=2.4.0
+    libc_cv_gcc_unwind_find_fde=yes
+    ;;
   alpha*)
     arch_minimum_kernel=2.1.100
     libc_cv_gcc_unwind_find_fde=yes

**********

but I can't get it to compile with thumb.  Here is a snippet of code gcc
generates

*********

.LP1:
        .word   0
        .text
        mov\tip, lr
        bl      mcount
        .word   LP1
        mov     r5, r0
        ldr     r3, [r5]

********

of course GNU assembler doesn't like the "mov\tip, lr" line


David


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
http://www.arm.linux.org.uk/armlinux/mailinglists.php
Please visit the above addresses for information on this list.

Reply via email to