Switch back to .data at the end of asm sections to work around an

optimization in recent gcc versions.
This commit is contained in:
Alexandre Julliard 2005-06-05 21:08:51 +00:00
parent f45cb12553
commit 520a7af933
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;