about summary refs log tree commit diff
path: root/arch/x86_64/crt_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/crt_arch.h')
-rw-r--r--arch/x86_64/crt_arch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/crt_arch.h b/arch/x86_64/crt_arch.h
new file mode 100644
index 00000000..db692950
--- /dev/null
+++ b/arch/x86_64/crt_arch.h
@@ -0,0 +1,9 @@
+__asm__("\
+.text \n\
+.global _start \n\
+_start: \n\
+	xor %rbp,%rbp \n\
+	mov %rsp,%rdi \n\
+	andq $-16,%rsp \n\
+	call __cstart \n\
+");