Commit 520a7af9 authored by Alexandre Julliard's avatar Alexandre Julliard

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

optimization in recent gcc versions.
parent f45cb125
...@@ -825,7 +825,7 @@ static int output_immediate_imports( FILE *outfile ) ...@@ -825,7 +825,7 @@ static int output_immediate_imports( FILE *outfile )
pos += 4; pos += 4;
} }
output_function_size( outfile, import_thunks ); 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: done:
return nb_imm; return nb_imm;
......
...@@ -298,8 +298,7 @@ static int output_exports( FILE *outfile, int nr_exports, DLLSPEC *spec ) ...@@ -298,8 +298,7 @@ static int output_exports( FILE *outfile, int nr_exports, DLLSPEC *spec )
} }
} }
fprintf( outfile, " \"\\t.text\\n\"\n" ); fprintf( outfile, " \"\\t.data\\n\"\n" );
fprintf( outfile, " \"\\t.align %d\\n\"\n", get_alignment(4) );
fprintf( outfile, ");\n\n" ); fprintf( outfile, ");\n\n" );
return total_size; return total_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment