summaryrefslogtreecommitdiff
path: root/crt/mips64/crtn.s
diff options
context:
space:
mode:
Diffstat (limited to 'crt/mips64/crtn.s')
-rw-r--r--crt/mips64/crtn.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/crt/mips64/crtn.s b/crt/mips64/crtn.s
new file mode 100644
index 00000000..f3930b24
--- /dev/null
+++ b/crt/mips64/crtn.s
@@ -0,0 +1,13 @@
+.set noreorder
+
+.section .init
+ ld $gp,16($sp)
+ ld $ra,24($sp)
+ j $ra
+ daddu $sp,$sp,32
+
+.section .fini
+ ld $gp,16($sp)
+ ld $ra,24($sp)
+ j $ra
+ daddu $sp,$sp,32