winebuild: Add a few nops to stub entry points to make Safedisc happy.

This commit is contained in:
Alexandre Julliard 2007-11-07 20:36:04 +01:00
parent 4f5c61ac7c
commit c32e02e48d
1 changed files with 12 additions and 1 deletions

View File

@ -1194,8 +1194,19 @@ void output_stubs( DLLSPEC *spec )
output( "\t.align %d\n", get_alignment(4) );
output( "\t%s\n", func_declaration(name) );
output( "%s:\n", asm_name(name) );
output( "\tsubl $4,%%esp\n" );
/* flesh out the stub a bit to make safedisc happy */
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output(" \tnop\n" );
output( "\tsubl $4,%%esp\n" );
if (UsePIC)
{
output( "\tcall %s\n", asm_name("__wine_spec_get_pc_thunk_eax") );