Alexandre Julliard : winebuild: Don't try to use the . init section on Mac OS.

Alexandre Julliard julliard at winehq.org
Wed Jan 16 13:37:28 CST 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jan 16 20:27:35 2008 +0100

winebuild: Don't try to use the .init section on Mac OS.

---

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

diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c
index 912e194..32a8299 100644
--- a/tools/winebuild/spec32.c
+++ b/tools/winebuild/spec32.c
@@ -358,14 +358,21 @@ void BuildSpec32File( DLLSPEC *spec )
 
     /* Reserve some space for the PE header */
 
-    output( "\n\t.section \".init\",\"ax\"\n" );
-    output( "\tjmp 1f\n" );
-    output( "__wine_spec_pe_header:\n" );
     if (target_platform == PLATFORM_APPLE)
-        output( "\t.space %u\n", 65536 + page_size );
+    {
+        output( "\t.text\n" );
+        output( "\t.align %d\n", get_alignment(page_size) );
+        output( "__wine_spec_pe_header:\n" );
+        output( "\t.space 65536\n" );
+    }
     else
+    {
+        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" );
+        output( "1:\n" );
+    }
 
     /* Output the NT header */
 




More information about the wine-cvs mailing list