-
Notifications
You must be signed in to change notification settings - Fork 145
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
Global Variable __remill_state on Windows #677
Comments
@Pigrecos, can you try modifying this: remill/lib/Arch/Runtime/Intrinsics.cpp Line 32 in a6abbb8
to be something like: extern "C" {
extern State __remill_state;
} // extern C And then do similar wrapping of the |
I changed the definition to both
that in
but the optimization is applied and it becomes:
|
Don’t use windows. |
What kind of useless response is this? |
@Pigrecos at the definition sites, can you try doing: extern "C" {
State __remill_state = {};
} // extern C |
Yes work ;)
lib/Arch/*/Runtime/Instructions.cpp
Result :
|
@Pigrecos can you submit a PR, and if the changes that you made to |
I compiled on windows using LLVM ver. 16.0.4 the amd64 semantics files (for example) with these changes to the BCCompiler.cmake file:
the result for the global variable __remill_state is:
instead of (compiled under ubuntu):
apply the decoration to the name.
Of course it can't find the variable:
Thank you
The text was updated successfully, but these errors were encountered: