Skip to content

Commit 60436b3

Browse files
committed
Use symbolic labels for BL and ADR instructions
1 parent 416b3bb commit 60436b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/opcache/jit/zend_jit_disasm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ static uint64_t zend_jit_disasm_branch_target(csh cs, const cs_insn *insn)
234234
}
235235
}
236236
#elif defined(__aarch64__)
237-
if (cs_insn_group(cs, insn, ARM64_GRP_JUMP)) {
237+
if (cs_insn_group(cs, insn, ARM64_GRP_JUMP)
238+
|| insn->id == ARM64_INS_BL
239+
|| insn->id == ARM64_INS_ADR) {
238240
for (i = 0; i < insn->detail->arm64.op_count; i++) {
239241
if (insn->detail->arm64.operands[i].type == ARM64_OP_IMM)
240242
return insn->detail->arm64.operands[i].imm;

0 commit comments

Comments
 (0)