8000 feat: Add X86_16 platform support by xor2003 · Pull Request #4683 · angr/angr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Add X86_16 platform support #4683

New issue
Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

xor2003
Copy link
@xor2003 xor2003 commented Jun 9, 2024

This patch required for the following X86 16 bit platform to work. See PR:
angr/angr-platforms#70
Decompiler generates some output.

@mahaloz
Copy link
Member
mahaloz commented Jun 12, 2024

@xor2003 would you be able to add a testcase to the decompiler; something like this:

def test_simplifying_string_transformation_loops(self, decompiler_options=None):

Ideally, just a minimal test to verify that the decompiler is producing code on a 16 bit binary. You can add a binary for the test to the binaries repo in a PR, link the issue in your top comment for this PR, and it should run in CI.

@ltfish ltfish self-assigned this Jun 12, 2024
@ltfish ltfish added the enhancement Some subsystem of angr needs tweaking label Jun 12, 2024
@@ -529,8 +529,15 @@ def _handle_Const(self, expr) -> MultiValues:
return MultiValues(clrp)

def _handle_Conversion(self, expr):
simop = vex_operations[expr.op]
bits = int(simop.op_attrs["to_size"])
if expr.op == "Iop_1Uto16":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these Iop_* defined?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: Joris van Eijden <joris.vaneijden@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some subsystem of angr needs tweaking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0