Skip to content

Fix setjmp/longjmp on native Windows #1331

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

Merged
merged 10 commits into from
Sep 21, 2020
Merged

Conversation

wtdcode
Copy link
Member

@wtdcode wtdcode commented Sep 21, 2020

Why do we need this wrapper?

Short answer: Windows default implementation of setjmp/longjmp is incompatible with jit generated code.
A longer answer: https://blog.lazym.io/2020/09/21/Unicorn-Devblog-setjmp-longjmp-on-Windows/.

Note that x86 setjmp/longjmp is implemented without RtlUnwind so there is no need to modify that.

@wtdcode
Copy link
Member Author

wtdcode commented Sep 21, 2020

Now works with cmake + VS 2017 x64 / nmake, cygwin, MinGW with msys2.

@aquynh

@aquynh aquynh merged commit 644da9b into unicorn-engine:master Sep 21, 2020
@aquynh
Copy link
Member

aquynh commented Sep 21, 2020

merged, thanks!

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.

2 participants