summaryrefslogtreecommitdiffstats
path: root/lib16/crt0.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib16/crt0.c')
-rw-r--r--lib16/crt0.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib16/crt0.c b/lib16/crt0.c
new file mode 100644
index 0000000..acc21c3
--- /dev/null
+++ b/lib16/crt0.c
@@ -0,0 +1,8 @@
+#include <sys16.h>
+
+extern int main(int, char **);
+
+int __attribute__((section(".init"))) _start(void)
+{
+ return main(SYS->argc, SYS->argv);
+}