mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-01 01:10:29 +00:00
arm64: print ADR with absolute address. bug reported by blackboxer123
This commit is contained in:
parent
51754231b9
commit
c9c3fdc3c9
@ -605,9 +605,13 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
|
||||
}
|
||||
}
|
||||
} else if (MCOperand_isImm(Op)) {
|
||||
int imm = (int)MCOperand_getImm(Op);
|
||||
printInt32Bang(O, imm);
|
||||
int64_t imm = MCOperand_getImm(Op);
|
||||
|
||||
if (MI->Opcode == AArch64_ADR) {
|
||||
imm += MI->address;
|
||||
printUInt64Bang(O, imm);
|
||||
} else
|
||||
printUInt64Bang(O, imm);
|
||||
if (MI->csh->detail) {
|
||||
if (MI->csh->doing_mem) {
|
||||
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].mem.disp = imm;
|
||||
|
Loading…
Reference in New Issue
Block a user