From dc3c3342e7f66dbf48071734a886ee1645f6f77a Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sat, 29 Dec 2012 23:07:23 -0800 Subject: Fix crash when printing error message about modified return address --- runtime.S | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime.S b/runtime.S index 838d6cc..5debd57 100644 --- a/runtime.S +++ b/runtime.S @@ -398,6 +398,7 @@ m68k_modified_ret_addr: lea ret_addr_msg(%rip), %rdi mov %rcx, %rsi mov 8(%rsp), %rdx + xor %rax, %rax call printf mov $1, %rdi call exit -- cgit v1.2.3