winebuild: Mark builtin DLLs as IMAGE_FILE_LARGE_ADDRESS_AWARE on a 64-bit platform

Dmitry Timoshkov dmitry at codeweavers.com
Sun May 27 23:44:46 CDT 2007


Hello,

Changelog:
    winebuild: Mark builtin DLLs as IMAGE_FILE_LARGE_ADDRESS_AWARE on
    a 64-bit platform.

---
 tools/winebuild/utils.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c
index a251e6f..3957887 100644
--- a/tools/winebuild/utils.c
+++ b/tools/winebuild/utils.c
@@ -334,6 +334,14 @@ DLLSPEC *alloc_dll_spec(void)
     spec->nb_names           = 0;
     spec->nb_resources       = 0;
     spec->characteristics    = IMAGE_FILE_EXECUTABLE_IMAGE;
+    switch (target_cpu)
+    {
+    case CPU_x86_64:
+        spec->characteristics |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
+        break;
+    default:
+        break;
+    }
     spec->dll_characteristics = IMAGE_DLLCHARACTERISTICS_NX_COMPAT;
     spec->subsystem          = 0;
     spec->subsystem_major    = 4;
-- 
1.5.1.6






More information about the wine-patches mailing list