summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/crt0.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/m68k/crt0.s')
-rw-r--r--libc/sysdeps/linux/m68k/crt0.s68
1 files changed, 68 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/m68k/crt0.s b/libc/sysdeps/linux/m68k/crt0.s
new file mode 100644
index 000000000..87bc173d8
--- /dev/null
+++ b/libc/sysdeps/linux/m68k/crt0.s
@@ -0,0 +1,68 @@
+# 1 "crt0.S"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .global _start
+ .global __main
+ .global _end
+
+
+ .bss
+ .global environ
+environ:
+ .long 0
+
+ .text
+_start:
+ nop
+ nop
+
+ movea.l %d5, %a5
+
+ lea __bss_start(%a5), %a0
+ lea end(%a5), %a1
+
+
+
+
+
+
+
+
+
+
+
+
+
+ move.l 8(%sp), %d5
+ move.l %d5, environ(%a5)
+
+ bsr main
+
+ move.l %d0,%sp@-
+ bsr exit
+
+# 69 "crt0.S"
+
+
+ .global _cleanup
+_cleanup:
+ rts
+
+