summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nios2/crtn.S')
-rw-r--r--libc/sysdeps/linux/nios2/crtn.S30
1 files changed, 30 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/nios2/crtn.S b/libc/sysdeps/linux/nios2/crtn.S
new file mode 100644
index 000000000..dfac2ab22
--- /dev/null
+++ b/libc/sysdeps/linux/nios2/crtn.S
@@ -0,0 +1,30 @@
+ .file "initfini.c"
+#APP
+
+ .section .init
+#NO_APP
+ .balign 4
+ .globl _init
+ .type _init, @function
+#NO_APP
+ ldw ra, 0(sp)
+ ldw fp, 4(sp)
+ addi sp, sp, 8
+ ret
+ .size _init, .-_init
+#APP
+
+ .section .fini
+#NO_APP
+ .balign 4
+ .globl _fini
+ .type _fini, @function
+#NO_APP
+ ldw ra, 0(sp)
+ ldw fp, 4(sp)
+ addi sp, sp, 8
+ ret
+ .size _fini, .-_fini
+#APP
+
+ .ident "GCC: (GNU) 3.3.2"