Open megrxu opened 3 years ago
This is an assembler problem. I still think we should default to keystone as assembler, because it is much better than the custom one we currently have. cc @XVilka @thestr4ng3r @wargio
ok for me, but keep in mind that keystone input is very buggy.
ok for me, but keep in mind that keystone input is very buggy.
Why do you say so? Every time we have a bug on the assembler, I go check with the .ks version and it works.
because you haven't seen the changes i have done to the code to assemble ppc
because you haven't seen the changes i have done to the code to assemble ppc
? Could you link/reference here?
https://github.com/rizinorg/rizin-extras/commits/master/keystone check all my commits
I think the most obvious blocker is that it is c++.
For that I think my old plugins reorg PR can help, as we can build the rz-keystone plugin as a separate shared library without affecting the rest of the codebase.
Work environment
rizin -v
full output, not truncated (mandatory)Expected behavior
Running:
Outputs:
Actual behavior
Outputs:
It seems that the instruction
xor rax, qword [rbp]
is not assembled correctly (should be "48334500", but "48330500" instead). However, with a none-zero offsetxor rax, qword [rbp + 1]
, the result is correct.For example running:
Outputs: