From d38a60ef0325122761dea450cc163ac036d896e7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 18 Mar 2009 02:51:45 +0000 Subject: Always compile fork.S in arm mode. Make _Unwind_Resume arm only even when compiling in thumb mode. --- libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c index 8188249ef..fb842f97d 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c @@ -19,6 +19,7 @@ #include #include +#include #include #define __libc_dlopen(x) dlopen(x, (RTLD_LOCAL | RTLD_LAZY)) @@ -54,6 +55,9 @@ init (void) assembly. */ __asm__ ( +#ifdef __thumb__ +" .code 32\n" +#endif " .globl _Unwind_Resume\n" " .type _Unwind_Resume, %function\n" "_Unwind_Resume:\n" @@ -74,6 +78,10 @@ __asm__ ( "1: .word _GLOBAL_OFFSET_TABLE_ - 3b - 8\n" "2: .word libgcc_s_resume(GOTOFF)\n" " .size _Unwind_Resume, .-_Unwind_Resume\n" +#ifdef __thumb__ +" .code 16\n" +#endif + ); _Unwind_Reason_Code -- cgit v1.2.3