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

Fix #41, #169 - capstone2llvmir: Correctly import pointers with segment override #388

Closed
wants to merge 1 commit into from

Conversation

palant
Copy link
Contributor

@palant palant commented Sep 10, 2018

See my analysis of the issue in #41, empty function bodies in the result were because LLVM saw a null pointer operation and assumed that it would throw. Importing segment override correctly fixes this issue. Using an undocumented mapping feels weird but https://github.com/avast-tl/llvm/blob/725d0cee133c6ab9b95c493f05de3b08016f5c3c/lib/Target/X86/X86ISelDAGToDAG.cpp#L1427 seems to be the only place where this is "documented."

@palant
Copy link
Contributor Author

palant commented Sep 10, 2018

Never mind, I wasn't running the code I thought I was running. Not quite there with this change yet.

@palant palant closed this Sep 10, 2018
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.

1 participant