[3/5] winebuild: Place __wine_spec_pe_header on Sparc as it's done on Solaris

André Hentschel nerv at dawncrow.de
Tue Nov 29 18:10:29 CST 2011


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

diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c
index 3dd99ab..1c6eab5 100644
--- a/tools/winebuild/spec32.c
+++ b/tools/winebuild/spec32.c
@@ -449,22 +449,30 @@ void output_module( DLLSPEC *spec )
         output( "\t.skip %u\n", 65536 + page_size );
         break;
     default:
-        output( "\n\t.section \".init\",\"ax\"\n" );
         switch(target_cpu)
         {
         case CPU_x86:
         case CPU_x86_64:
-        case CPU_SPARC:
+            output( "\n\t.section \".init\",\"ax\"\n" );
             output( "\tjmp 1f\n" );
+            output( "__wine_spec_pe_header:\n" );
+            output( "\t.skip %u\n", 65536 + page_size );
+            output( "1:\n" );
             break;
         case CPU_ARM:
         case CPU_POWERPC:
+            output( "\n\t.section \".init\",\"ax\"\n" );
             output( "\tb 1f\n" );
+            output( "__wine_spec_pe_header:\n" );
+            output( "\t.skip %u\n", 65536 + page_size );
+            output( "1:\n" );
+            break;
+        case CPU_SPARC:
+            output( "\n\t.section \".text\",\"ax\"\n" );
+            output( "__wine_spec_pe_header:\n" );
+            output( "\t.skip %u\n", 65536 + page_size );
             break;
         }
-        output( "__wine_spec_pe_header:\n" );
-        output( "\t.skip %u\n", 65536 + page_size );
-        output( "1:\n" );
         break;
     }
 
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list