From: André Hentschel Subject: [2/4] winebuild: Expect a Thumb mode toolchain on ARM Message-Id: <4F9D99D2.7040700@dawncrow.de> Date: Sun, 29 Apr 2012 21:43:14 +0200 Fixes http://bugs.winehq.org/show_bug.cgi?id=30134 --- tools/winebuild/spec32.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c index 1e5c694..7743acc 100644 --- a/tools/winebuild/spec32.c +++ b/tools/winebuild/spec32.c @@ -415,6 +415,9 @@ static void output_asm_constructor( const char *constructor ) output( "\tnop\n" ); break; case CPU_ARM: + output( "\tblx %s\n", asm_name(constructor) ); + output( "\t.arm\n" ); + break; case CPU_POWERPC: output( "\tbl %s\n", asm_name(constructor) ); break; @@ -458,6 +461,10 @@ void output_module( DLLSPEC *spec ) output( "\tjmp 1f\n" ); break; case CPU_ARM: + output( "\n\t.syntax unified\n" ); + output( "\n\t.thumb\n" ); + output( "\tb.w 1f\n" ); + break; case CPU_POWERPC: output( "\tb 1f\n" ); break; -- Best Regards, André Hentschel