Module: wine Branch: master Commit: 320acdad05b0e3eee0aac16909716b106cf057b4 URL: https://gitlab.winehq.org/wine/wine/-/commit/320acdad05b0e3eee0aac16909716b1...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jun 9 11:04:05 2023 +0200
winebuild: Set a 64-bit base address for generated 64-bit dlls.
---
tools/winebuild/spec32.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c index 0cf8d783633..6e4131bd910 100644 --- a/tools/winebuild/spec32.c +++ b/tools/winebuild/spec32.c @@ -1113,8 +1113,16 @@ static void output_pe_file( DLLSPEC *spec, const char signature[32] ) put_dword( 0 ); /* SizeOfUninitializedData */ put_dword( code_size ? pe.sec[0].rva : 0 ); /* AddressOfEntryPoint */ put_dword( code_size ? pe.sec[0].rva : 0 ); /* BaseOfCode */ - if (get_ptr_size() == 4) put_dword( 0 ); /* BaseOfData */ - put_pword( 0x10000000 ); /* ImageBase */ + if (get_ptr_size() == 4) + { + put_dword( 0 ); /* BaseOfData */ + put_dword( 0x10000000 ); /* ImageBase */ + } + else + { + put_dword( 0x80000000 ); /* ImageBase */ + put_dword( 0x00000001 ); + } put_dword( pe.section_align ); /* SectionAlignment */ put_dword( pe.file_align ); /* FileAlignment */ put_word( 1 ); /* MajorOperatingSystemVersion */