Commit 320acdad authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Set a 64-bit base address for generated 64-bit dlls.

parent 931292f1
......@@ -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 */
......
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