mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
winebuild: Put the delay import descriptor in data section.
This fixes incorrect .text section flags for any module using delay imports. The use of a custom .text$2 section as dlltool is doing causes the section to be flagged as DATA, and ends up with the .text section being writable, which triggers the anti tamper used in Forza Horizon.
This commit is contained in:
parent
cfe83e80fc
commit
2e5e5ade82
|
@ -1733,7 +1733,6 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc
|
|||
output( ".L__wine_delay_import_handle:\n" );
|
||||
output( "\t%s 0\n", get_asm_ptr_keyword() );
|
||||
|
||||
output( "\n\t.section \".text$2\"\n" );
|
||||
output( "%s\n", asm_globl( import_desc ) );
|
||||
output( "\t.long 1\n" ); /* DllAttributes */
|
||||
output_rva( "%s", asm_name( import_name ) ); /* DllNameRVA */
|
||||
|
|
Loading…
Reference in a new issue