initial version of mips (o32) port, based on work by Richard Pennington (rdp)
[musl] / crt / mips / crti.s
diff --git a/crt/mips/crti.s b/crt/mips/crti.s
new file mode 100644 (file)
index 0000000..cbc6e3e
--- /dev/null
@@ -0,0 +1,15 @@
+.set noreorder
+
+.section .init
+.global _init
+_init:
+       subu $sp,$sp,32
+       sw $gp,24($sp)
+       sw $ra,28($sp)
+
+.section .fini
+.global _fini
+_fini:
+       subu $sp,$sp,32
+       sw $gp,24($sp)
+       sw $ra,28($sp)