winebuild: Simplify the ARM part of output_import_thunk

André Hentschel nerv at dawncrow.de
Fri Jun 17 09:53:12 CDT 2011


this depends on the last winebuild patch, so if the other doesn't make it in i'll resend this one.
---
 tools/winebuild/import.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c
index b0901a6..00c030b 100644
--- a/tools/winebuild/import.c
+++ b/tools/winebuild/import.c
@@ -672,9 +672,8 @@ static void output_import_thunk( const char *name, const char *table, int pos )
         break;
     case CPU_ARM:
         output( "\tldr IP,[PC,#0]\n");
-        output( "\tmov PC,PC\n");
-        output( "\t.long %s\n", table );
         output( "\tldr PC,[IP,#%d]\n", pos);
+        output( "\t.long %s\n", table );
         break;
     case CPU_POWERPC:
         output( "\tmr %s, %s\n", ppc_reg(0), ppc_reg(31) );
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list