summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/csky/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/csky/crtn.S')
-rw-r--r--libc/sysdeps/linux/csky/crtn.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/csky/crtn.S b/libc/sysdeps/linux/csky/crtn.S
new file mode 100644
index 000000000..3814f307e
--- /dev/null
+++ b/libc/sysdeps/linux/csky/crtn.S
@@ -0,0 +1,11 @@
+.file "initfini.c"
+
+.section .init
+ ldw lr, (sp, 4)
+ addi sp, 8
+ rts
+
+.section .fini
+ ldw lr, (sp, 4)
+ addi sp, 8
+ rts