Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Kernel support #38

Closed
carlos-al opened this issue Jun 9, 2024 · 1 comment
Closed

Windows Kernel support #38

carlos-al opened this issue Jun 9, 2024 · 1 comment

Comments

@carlos-al
Copy link

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
Copy link
Member

athre0z commented Jun 9, 2024

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

@athre0z athre0z closed this as completed Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants