zyantific / zydis-rs

Zydis Rust Bindings
MIT License
83 stars 14 forks source link

Windows Kernel support #38

Closed carlos-al closed 4 months ago

carlos-al commented 4 months ago

If you try using this library directly in a Windows kernel driveryou'll see five extra imports from Kernel32.dll that shouldn't be there. without_flag

If you look at the Visual Studio solutions in zydis/msvc, you'll see that the ZydisWinKernel solution needs the BufferOverflowK library to build properly. This can be fixed adding the following line to build.rs: println!("cargo:rustc-link-lib=BufferOverflowK");

athre0z commented 4 months ago

Resolved in 9e1528cea64e7ce99d7d97e4a1986410e654208a. I also configured no-stack-protector to automatically be enabled when nolibc feature is enabled.