Make ZydisWinKernel compatible with Clang

This commit is contained in:
Mattiwatti 2017-11-29 17:01:15 +01:00
parent 3c631a5d3d
commit 039a0b93d7
No known key found for this signature in database
GPG Key ID: D40D1DBE299B83EA
1 changed files with 4 additions and 1 deletions

View File

@ -58,10 +58,13 @@ RtlImageNtHeader(
_In_ PVOID ImageBase
);
#if defined(ZYDIS_CLANG) || defined(ZYDIS_GNUC)
__attribute__((section("INIT")))
#endif
DRIVER_INITIALIZE
DriverEntry;
#ifdef ALLOC_PRAGMA
#if defined(ALLOC_PRAGMA) && !(defined(ZYDIS_CLANG) || defined(ZYDIS_GNUC))
#pragma alloc_text(INIT, DriverEntry)
#endif