From 010414d73227c14b8b277f28c577fa3c648f474e Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 11 Nov 2020 19:27:30 +0100 Subject: amd64 fix exit syscall nr --- src/arch/x86_64.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/arch/x86_64.md b/src/arch/x86_64.md index 63bea81..7fd5113 100644 --- a/src/arch/x86_64.md +++ b/src/arch/x86_64.md @@ -182,7 +182,7 @@ _start: syscall mov rdi, 0 # exit code - mov rax, 1 # exit(2) syscall nr + mov rax, 60 # exit(2) syscall nr syscall .section .rdonly, "a", @progbits -- cgit v1.2.3