Skip to content

Commit

Permalink
Fix ARM fcall unwind
Browse files Browse the repository at this point in the history
  • Loading branch information
elicn committed Oct 31, 2024
1 parent d05ac7b commit 8b34114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiling/cc/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setReturnAddress(self, addr: int) -> None:

def unwind(self, nslots: int) -> int:
# TODO: cleanup?
return self.arch.stack_pop()
return self.arch.regs.lr

class aarch64(QlArmBaseCC):
_retaddr_on_stack = False
Expand Down

0 comments on commit 8b34114

Please sign in to comment.