Alexandre Julliard : winebuild: Don't put the PE header in the . init section on Solaris.
Module: wine Branch: master Commit: b24b2d584e750c56087c7e6c0cee7c98bdf97ace URL: http://source.winehq.org/git/wine.git/?a=commit;h=b24b2d584e750c56087c7e6c0c... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 22 13:26:45 2008 +0200 winebuild: Don't put the PE header in the .init section on Solaris. --- tools/winebuild/spec32.c | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c index 5038579..afcc7da 100644 --- a/tools/winebuild/spec32.c +++ b/tools/winebuild/spec32.c @@ -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 */
participants (1)
-
Alexandre Julliard