Simon Richter : winebuild: Fix branch mnemonic on ppc.

Alexandre Julliard julliard at winehq.org
Mon Jun 2 07:24:23 CDT 2008


Module: wine
Branch: master
Commit: d1e277fb70ad512059db7a5fac39104388ea1fff
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d1e277fb70ad512059db7a5fac39104388ea1fff

Author: Simon Richter <Simon.Richter at hogyros.de>
Date:   Sat May 31 10:49:49 2008 +0200

winebuild: Fix branch mnemonic on ppc.

---

 tools/winebuild/spec32.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c
index 32a8299..5038579 100644
--- a/tools/winebuild/spec32.c
+++ b/tools/winebuild/spec32.c
@@ -368,7 +368,18 @@ void BuildSpec32File( DLLSPEC *spec )
     else
     {
         output( "\n\t.section \".init\",\"ax\"\n" );
-        output( "\tjmp 1f\n" );
+        switch(target_cpu)
+        {
+        case CPU_x86:
+        case CPU_x86_64:
+        case CPU_ALPHA:
+        case CPU_SPARC:
+            output( "\tjmp 1f\n" );
+            break;
+        case CPU_POWERPC:
+            output( "\tb 1f\n" );
+            break;
+        }
         output( "__wine_spec_pe_header:\n" );
         output( "\t.skip %u\n", 65536 + page_size );
         output( "1:\n" );




More information about the wine-cvs mailing list