mirror of https://github.com/x64dbg/zydis
Make ZydisWinKernel compatible with Clang
This commit is contained in:
parent
3c631a5d3d
commit
039a0b93d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue