Commit b24b2d58 authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Don't put the PE header in the .init section on Solaris.

parent a3f42116
...@@ -358,15 +358,20 @@ void BuildSpec32File( DLLSPEC *spec ) ...@@ -358,15 +358,20 @@ void BuildSpec32File( DLLSPEC *spec )
/* Reserve some space for the PE header */ /* Reserve some space for the PE header */
if (target_platform == PLATFORM_APPLE) switch (target_platform)
{ {
case PLATFORM_APPLE:
output( "\t.text\n" ); output( "\t.text\n" );
output( "\t.align %d\n", get_alignment(page_size) ); output( "\t.align %d\n", get_alignment(page_size) );
output( "__wine_spec_pe_header:\n" ); output( "__wine_spec_pe_header:\n" );
output( "\t.space 65536\n" ); output( "\t.space 65536\n" );
} break;
else case PLATFORM_SOLARIS:
{ output( "\n\t.section \".text\",\"ax\"\n" );
output( "__wine_spec_pe_header:\n" );
output( "\t.skip %u\n", 65536 + page_size );
break;
default:
output( "\n\t.section \".init\",\"ax\"\n" ); output( "\n\t.section \".init\",\"ax\"\n" );
switch(target_cpu) switch(target_cpu)
{ {
...@@ -383,6 +388,7 @@ void BuildSpec32File( DLLSPEC *spec ) ...@@ -383,6 +388,7 @@ void BuildSpec32File( DLLSPEC *spec )
output( "__wine_spec_pe_header:\n" ); output( "__wine_spec_pe_header:\n" );
output( "\t.skip %u\n", 65536 + page_size ); output( "\t.skip %u\n", 65536 + page_size );
output( "1:\n" ); output( "1:\n" );
break;
} }
/* Output the NT header */ /* Output the NT header */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment