summaryrefslogtreecommitdiff
path: root/klibc/klibc/arch/arm/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'klibc/klibc/arch/arm/crt0.S')
-rw-r--r--klibc/klibc/arch/arm/crt0.S25
1 files changed, 25 insertions, 0 deletions
diff --git a/klibc/klibc/arch/arm/crt0.S b/klibc/klibc/arch/arm/crt0.S
new file mode 100644
index 0000000000..8cd3640c30
--- /dev/null
+++ b/klibc/klibc/arch/arm/crt0.S
@@ -0,0 +1,25 @@
+#
+# arch/arm/crt0.S
+#
+# void _start(void)
+# {
+# /* Divine up argc, argv, and envp */
+# environ = envp;
+# exit(main(argc, argv, envp));
+# }
+#
+
+ .text
+ .align 4
+ .type _start,#function
+ .globl _start
+
+#ifdef __thumb__
+ .thumb_func
+#endif
+
+_start: mov r0, sp
+ mov r1, #0
+ bl __libc_init
+
+ .size _start,.-_start