Fix branch mnemonic on ppc
Simon Richter
Simon.Richter at hogyros.de
Sat May 31 03:49:49 CDT 2008
On PowerPC, there is no "jmp" instruction, so the assembler output
generated by winebuild needs to use "b" here.
---
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" );
--
1.5.5.2
More information about the wine-patches
mailing list