Skip to content

Commit b420f1e

Browse files
ucgJheucgJhe
authored andcommitted
fix missing _return_address_on_stack for arm
1 parent 106a9d7 commit b420f1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qiling/cc/arm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ def unwind(self, nslots: int) -> int:
2828
return self.arch.stack_pop()
2929

3030
class aarch64(QlArmBaseCC):
31+
_retaddr_on_stack = False
3132
_retreg = UC_ARM64_REG_X0
3233
_argregs = (UC_ARM64_REG_X0, UC_ARM64_REG_X1, UC_ARM64_REG_X2, UC_ARM64_REG_X3, UC_ARM64_REG_X4, UC_ARM64_REG_X5, UC_ARM64_REG_X6, UC_ARM64_REG_X7) + (None, ) * 8
3334

3435
class aarch32(QlArmBaseCC):
36+
_retaddr_on_stack = False
3537
_retreg = UC_ARM_REG_R0
3638
_argregs = (UC_ARM_REG_R0, UC_ARM_REG_R1, UC_ARM_REG_R2, UC_ARM_REG_R3) + (None, ) * 12

0 commit comments

Comments
 (0)