Module: wine Branch: master Commit: c32e02e48d3aeba7588b566973c9fb02253e8a10 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c32e02e48d3aeba7588b566973...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 7 20:36:04 2007 +0100
winebuild: Add a few nops to stub entry points to make Safedisc happy.
---
tools/winebuild/import.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index da4b1db..1e9cfe3 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -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") );