summaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/dripos/crt-x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/sysdeps/dripos/crt-x86_64')
-rw-r--r--lib/mlibc/sysdeps/dripos/crt-x86_64/crt1.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mlibc/sysdeps/dripos/crt-x86_64/crt1.S b/lib/mlibc/sysdeps/dripos/crt-x86_64/crt1.S
new file mode 100644
index 0000000..18d109e
--- /dev/null
+++ b/lib/mlibc/sysdeps/dripos/crt-x86_64/crt1.S
@@ -0,0 +1,9 @@
+
+.section .text
+.global _start
+_start:
+ mov $main, %rdi
+ call __mlibc_entry
+
+.section .note.GNU-stack,"",%progbits
+