summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/csky/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/csky/crti.S')
-rw-r--r--libc/sysdeps/linux/csky/crti.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/csky/crti.S b/libc/sysdeps/linux/csky/crti.S
new file mode 100644
index 000000000..e85a81cb1
--- /dev/null
+++ b/libc/sysdeps/linux/csky/crti.S
@@ -0,0 +1,13 @@
+#include <sysdep.h>
+.file "initfini.c"
+
+.section .init
+ENTRY(_init)
+ subi sp, 8
+ stw lr, (sp, 4)
+
+.section .fini
+ENTRY(_fini)
+ subi sp, 8
+ stw lr, (sp, 4)
+