summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/amd64/crt/crt0.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libc/amd64/crt/crt0.S b/src/lib/libc/amd64/crt/crt0.S
index 15cd8fd..dc1a273 100644
--- a/src/lib/libc/amd64/crt/crt0.S
+++ b/src/lib/libc/amd64/crt/crt0.S
@@ -31,4 +31,7 @@
.globl _start
_start:
call main
- jmp .
+ mov $0x01, %rax
+ xor %rdi, %rdi
+ int $0x80
+ ud2