Index: config/cmse.c =================================================================== --- config/cmse.c (revision 68932) +++ config/cmse.c (working copy) @@ -18,7 +18,7 @@ PSECURITY_DESCRIPTOR NTAPI -INIT_FUNCTION +//INIT_FUNCTION CmpHiveRootSecurityDescriptor(VOID) { NTSTATUS Status; Index: include/internal/dbgk.h =================================================================== --- include/internal/dbgk.h (revision 68932) +++ include/internal/dbgk.h (working copy) @@ -47,7 +47,6 @@ #endif VOID -INIT_FUNCTION NTAPI DbgkInitialize( VOID Index: include/internal/io.h =================================================================== --- include/internal/io.h (revision 68932) +++ include/internal/io.h (working copy) @@ -662,7 +662,6 @@ ); NTSTATUS -INIT_FUNCTION IopInitPlugPlayEvents(VOID); NTSTATUS Index: include/internal/ntoskrnl.h =================================================================== --- include/internal/ntoskrnl.h (revision 68932) +++ include/internal/ntoskrnl.h (working copy) @@ -3,17 +3,16 @@ /* * Use these to place a function in a specific section of the executable */ -#define PLACE_IN_SECTION(s) __attribute__((section (s))) #ifdef __GNUC__ -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION PLACE_IN_SECTION("pagelk") -#define PAGE_UNLOCKED_FUNCTION PLACE_IN_SECTION("pagepo") +#define INIT_SECTION __attribute__((section ("INIT"))) +#define INIT_FUNCTION INIT_SECTION #else -#define INIT_FUNCTION -#define PAGE_LOCKED_FUNCTION -#define PAGE_UNLOCKED_FUNCTION +#define INIT_SECTION __declspec(code_seg("INIT")) +#define INIT_FUNCTION INIT_SECTION #endif + + #ifdef _NTOSKRNL_ #ifndef _ARM_ Index: io/iomgr/driver.c =================================================================== --- io/iomgr/driver.c (revision 68932) +++ io/iomgr/driver.c (working copy) @@ -197,7 +197,6 @@ */ VOID FASTCALL -INIT_FUNCTION IopDisplayLoadingMessage(PUNICODE_STRING ServiceName) { CHAR TextBuffer[256]; Index: ps/psmgr.c =================================================================== --- ps/psmgr.c (revision 68932) +++ ps/psmgr.c (working copy) @@ -242,7 +242,6 @@ NTSTATUS NTAPI -INIT_FUNCTION PspMapSystemDll(IN PEPROCESS Process, IN PVOID *DllBase, IN BOOLEAN UseLargePages)