[Bug 44893] SKSE64 fails to initialize, reports: "couldn't allocate trampoline, no free space before image" (virtual address space between KUSER_SHARED_DATA and main executable reported as reserved)

WineHQ Bugzilla wine-bugs at winehq.org
Thu Oct 15 21:44:44 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=44893

--- Comment #13 from qsniyg <qsniyg at mail.com> ---
The reason it works under windows is because skse64_1_5_??.dll has the
IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE in its DllCharacteristics. This causes
it to be loaded with the MEM_TOP_DOWN flag in NtMapViewOfSection, which loads
it at a much higher address, avoiding the 32-bit address space issue entirely.

Here's a (admittedly rather badly written) test I wrote for it:
https://github.com/qsniyg/wine_dll_load_test/tree/b2b64bc8d7d1589cbfeb1dbb533674e4b32ed2b3/2

And the relevant patch: https://source.winehq.org/patches/data/194530

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list