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

This commit is contained in:
Alexandre Julliard 2008-07-22 13:26:45 +02:00
parent a3f42116da
commit b24b2d584e

View File

@ -358,15 +358,20 @@ void BuildSpec32File( DLLSPEC *spec )
/* Reserve some space for the PE header */
if (target_platform == PLATFORM_APPLE)
switch (target_platform)
{
case PLATFORM_APPLE:
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
{
break;
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" );
switch(target_cpu)
{
@ -383,6 +388,7 @@ void BuildSpec32File( DLLSPEC *spec )
output( "__wine_spec_pe_header:\n" );
output( "\t.skip %u\n", 65536 + page_size );
output( "1:\n" );
break;
}
/* Output the NT header */