Handle refs in arm.cs for ADD+pc

This commit is contained in:
pancake 2014-11-10 03:34:01 +01:00
parent 3640a0481c
commit c96a05227e
1 changed files with 4 additions and 0 deletions

View File

@ -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: