Commit bc2e4ea7 authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Update target-dependent characteristics after option parsing.

parent 320acdad
......@@ -640,6 +640,11 @@ int main(int argc, char **argv)
spec->characteristics |= IMAGE_FILE_DLL;
/* fall through */
case MODE_EXE:
if (get_ptr_size() == 4)
spec->characteristics |= IMAGE_FILE_32BIT_MACHINE;
else
spec->characteristics |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
files = load_resources( files, spec );
if (spec_file_name && !parse_input_file( spec )) break;
if (!spec->init_func) spec->init_func = xstrdup( get_default_entry_point( spec ));
......
......@@ -629,10 +629,6 @@ DLLSPEC *alloc_dll_spec(void)
spec->subsystem_major = 4;
spec->subsystem_minor = 0;
spec->syscall_table = 0;
if (get_ptr_size() > 4)
spec->characteristics |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
else
spec->characteristics |= IMAGE_FILE_32BIT_MACHINE;
spec->dll_characteristics = IMAGE_DLLCHARACTERISTICS_NX_COMPAT;
return spec;
}
......
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