winebuild: Reserve the space for the PE header in the .init section.

oldstable
Alexandre Julliard 2008-01-16 17:51:59 +01:00
parent 1030d41279
commit 538071ce7e
1 changed files with 5 additions and 4 deletions

View File

@ -358,13 +358,14 @@ void BuildSpec32File( DLLSPEC *spec )
/* Reserve some space for the PE header */
output( "\t.text\n" );
output( "\t.align %d\n", get_alignment(page_size) );
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 65536\n" );
output( "\t.space %u\n", 65536 + page_size );
else
output( "\t.skip 65536\n" );
output( "\t.skip %u\n", 65536 + page_size );
output( "1:\n" );
/* Output the NT header */