ntdll-Fix_Alignment: Use DECLSPEC_ALIGN instead of __attribute__((aligned(..))).

This commit is contained in:
Sebastian Lackner
2014-11-06 03:18:26 +01:00
parent 14ae97f5a2
commit f6dd7940f0
4 changed files with 7 additions and 6 deletions

View File

@@ -16,12 +16,12 @@ index 4819d2d..63ba0a3 100644
static BOOL use_locks;
static BOOL force_exec_prot; /* whether to force PROT_EXEC on all PROT_READ mmaps */
+#if defined(__i386__) && defined(__GNUC__)
+#if defined(__i386__)
+NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *size_ptr,
+ ULONG new_prot, ULONG *old_prot ) __attribute__((aligned(4096)));
+ ULONG new_prot, ULONG *old_prot ) DECLSPEC_ALIGN(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)));
+ ULONG sec_flags, HANDLE file ) DECLSPEC_ALIGN(4096);
+#endif
/***********************************************************************

View File

@@ -1,4 +1,4 @@
Author: Michael Müller
Subject: Move NtProtectVirtualMemory and NtCreateSection to separate pages in ntdll on x86.
Revision: 1
Revision: 2
Fixes: [33162] Ensure NtProtectVirtualMemory and NtCreateSection are on separate pages