summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nds32/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nds32/crtn.S')
-rw-r--r--libc/sysdeps/linux/nds32/crtn.S24
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/nds32/crtn.S b/libc/sysdeps/linux/nds32/crtn.S
new file mode 100644
index 000000000..7cc543e20
--- /dev/null
+++ b/libc/sysdeps/linux/nds32/crtn.S
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2016 Andes Technology, Inc.
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+ .pic
+#APP
+ .section .init
+ ! epilogue
+ addi $sp,$fp,#-4
+ lmw.bim $sp,[$sp],$sp,#0x6
+ lwi.bi $fp,[$sp],#4
+ ret
+.LFE28:
+ .section .fini
+#NO_APP
+ ! epilogue
+ addi $sp,$fp,#-4
+ lmw.bim $sp,[$sp],$sp,#0x6
+ lwi.bi $fp,[$sp],#4
+ ret
+.LFE29:
+#APP
+ .ident "GCC: (GNU) 3.4.4"