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

jit/x86: Windows support #359

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ndrewh
Copy link

@ndrewh ndrewh commented Jul 21, 2022

This contribution is on behalf of Trail of Bits. This depends on the refactor in #358.

This adds Windows support to the x86 JIT. The only differences are we have to use the windows virtual memory API (ie. VirtualAlloc, etc.) and we have to abide by slightly different calling conventions. This was not tested on ARM64 windows.

Windows support passes tests, but is not ready for production use, and is gated behind a feature flag: jit-windows-not-safe-for-production.

This also includes a few extra comments documenting parts of the x86 JIT.

Fixes: #217

ndrewh and others added 2 commits July 19, 2022 13:32
@addisoncrump
Copy link

I cannot run my fuzzers with this; I don't currently have access to Windows machines.

@Lichtso
Copy link

Lichtso commented Nov 14, 2022

@ndrewh: First of all, sorry for the very late reply, which caused this very nice contribution to diverge so much from our main branch. If you still want to contribute this, could you separate the windows form the ARM stuff and rebase it? That would be really appreciated!

Lichtso added a commit that referenced this pull request Dec 1, 2022
Lichtso added a commit that referenced this pull request Dec 1, 2022
Lichtso added a commit that referenced this pull request Dec 1, 2022
Lichtso added a commit that referenced this pull request Dec 1, 2022
* Adds the memory management on windows part of the contribution from ndrewh (Trail of Bits). See #359

* Factors out common code.

* Moves memory_management into its own file.
@Lichtso
Copy link

Lichtso commented Dec 1, 2022

The win api part of this PR is merged with #422.

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

Successfully merging this pull request may close these issues.

JIT: Windows not supported
3 participants