From 520a7af933206bb99ffb938dd72216c0af13e03a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 5 Jun 2005 21:08:51 +0000 Subject: [PATCH] Switch back to .data at the end of asm sections to work around an optimization in recent gcc versions. --- tools/winebuild/import.c | 2 +- tools/winebuild/spec32.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index f8b73d36d59..d155d758ff1 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -825,7 +825,7 @@ static int output_immediate_imports( FILE *outfile ) pos += 4; } output_function_size( outfile, import_thunks ); - fprintf( outfile, " \".text\");\n#ifndef __GNUC__\n}\n#endif\n\n" ); + fprintf( outfile, " \".data\");\n#ifndef __GNUC__\n}\n#endif\n\n" ); done: return nb_imm; diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c index d5b55877484..ceb4828a38b 100644 --- a/tools/winebuild/spec32.c +++ b/tools/winebuild/spec32.c @@ -298,8 +298,7 @@ static int output_exports( FILE *outfile, int nr_exports, DLLSPEC *spec ) } } - fprintf( outfile, " \"\\t.text\\n\"\n" ); - fprintf( outfile, " \"\\t.align %d\\n\"\n", get_alignment(4) ); + fprintf( outfile, " \"\\t.data\\n\"\n" ); fprintf( outfile, ");\n\n" ); return total_size;