Handle refs in arm.cs for ADD+pc
This commit is contained in:
parent
3640a0481c
commit
c96a05227e
|
@ -210,6 +210,10 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) {
|
|||
break;
|
||||
case ARM_INS_ADD:
|
||||
op->type = R_ANAL_OP_TYPE_ADD;
|
||||
if (REGID(1)==ARM_REG_PC) {
|
||||
op->ptr = addr + 8 + IMM(2);
|
||||
op->refptr = 0;
|
||||
}
|
||||
break;
|
||||
case ARM_INS_MOV:
|
||||
case ARM_INS_MOVS:
|
||||
|
|
Loading…
Reference in New Issue