You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Add patch to move NtProtectVirtualMemory and NtCreateSection to separate pages.
This commit is contained in:
@@ -29,6 +29,7 @@ PATCHLIST := \
|
||||
ntdll-Dynamic_DST.ok \
|
||||
ntdll-FD_Cache.ok \
|
||||
ntdll-FileDispositionInformation.ok \
|
||||
ntdll-Fix_Alignment.ok \
|
||||
ntdll-Junction_Points.ok \
|
||||
ntdll-Pipe_SpecialCharacters.ok \
|
||||
ntdll-loader_EntryPoint.ok \
|
||||
@@ -482,6 +483,24 @@ ntdll-FileDispositionInformation.ok:
|
||||
echo '+ { "ntdll-FileDispositionInformation", "Dmitry Timoshkov / Erich E. Hoover", "Add support for setting file disposition information." },'; \
|
||||
) > ntdll-FileDispositionInformation.ok
|
||||
|
||||
# Patchset ntdll-Fix_Alignment
|
||||
# |
|
||||
# | Included patches:
|
||||
# | * Move NtProtectVirtualMemory and NtCreateSection to separate pages in ntdll on x86. [by Michael Müller]
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#33162] Adobe Reader requires NtProtectVirtualMemory and NtCreateSection to be on separate pages
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/ntdll/virtual.c
|
||||
# |
|
||||
.INTERMEDIATE: ntdll-Fix_Alignment.ok
|
||||
ntdll-Fix_Alignment.ok:
|
||||
$(call APPLY_FILE,ntdll-Fix_Alignment/0001-ntdll-Move-NtProtectVirtualMemory-and-NtCreateSectio.patch)
|
||||
@( \
|
||||
echo '+ { "ntdll-Fix_Alignment", "Michael Müller", "Move NtProtectVirtualMemory and NtCreateSection to separate pages in ntdll on x86." },'; \
|
||||
) > ntdll-Fix_Alignment.ok
|
||||
|
||||
# Patchset ntdll-Junction_Points
|
||||
# |
|
||||
# | Included patches:
|
||||
|
@@ -0,0 +1,31 @@
|
||||
From 9f83442a212635a7921420c56c217df0c0e46fc4 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Wed, 20 Aug 2014 19:21:18 +0200
|
||||
Subject: ntdll: Move NtProtectVirtualMemory and NtCreateSection to separate
|
||||
pages on x86
|
||||
|
||||
---
|
||||
dlls/ntdll/virtual.c | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
|
||||
index 4819d2d..63ba0a3 100644
|
||||
--- a/dlls/ntdll/virtual.c
|
||||
+++ b/dlls/ntdll/virtual.c
|
||||
@@ -150,6 +150,13 @@ static void *preload_reserve_end;
|
||||
static BOOL use_locks;
|
||||
static BOOL force_exec_prot; /* whether to force PROT_EXEC on all PROT_READ mmaps */
|
||||
|
||||
+#if defined(__i386__) && defined(__GNUC__)
|
||||
+NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr,
|
||||
+ ULONG new_prot, ULONG *old_prot ) __attribute__((aligned(4096)));
|
||||
+NTSTATUS WINAPI NtCreateSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_ATTRIBUTES *attr,
|
||||
+ const LARGE_INTEGER *size, ULONG protect,
|
||||
+ ULONG sec_flags, HANDLE file ) __attribute__((aligned(4096)));
|
||||
+#endif
|
||||
|
||||
/***********************************************************************
|
||||
* VIRTUAL_GetProtStr
|
||||
--
|
||||
1.9.1
|
||||
|
4
patches/ntdll-Fix_Alignment/definition
Normal file
4
patches/ntdll-Fix_Alignment/definition
Normal file
@@ -0,0 +1,4 @@
|
||||
Author: Michael Müller
|
||||
Subject: Move NtProtectVirtualMemory and NtCreateSection to separate pages in ntdll on x86.
|
||||
Revision: 1
|
||||
Fixes: [33162] Adobe Reader requires NtProtectVirtualMemory and NtCreateSection to be on separate pages
|
Reference in New Issue
Block a user