rizinorg / rz-hexagon

Hexagon disassembler code generator for Rizin from the LLVM definitions.
12 stars 2 forks source link

Function analysis does not add complete packet to function. #31

Open Rot127 opened 2 years ago

Rot127 commented 2 years ago

The rizin function analysis stops analyzing the current function, if it encounters a direct jump instruction. This is problematic in our case since the jump instructions often is located at the beginning of a packet. Hence the rest of the packet is not analyzed by the analysis code, although it is executed on a real processor.

Example:

rizin-1 This function should actually look like this:

rizin-2

Possible, but not very nice, solutions:

Rot127 commented 2 years ago

Very similar, if not even the same, like https://github.com/rizinorg/rz-hexagon/issues/30