Commit 538071ce authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 1030d412
......@@ -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 */
......
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