summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nios2/crti.S')
-rw-r--r--libc/sysdeps/linux/nios2/crti.S31
1 files changed, 31 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/nios2/crti.S b/libc/sysdeps/linux/nios2/crti.S
new file mode 100644
index 000000000..7867c21c0
--- /dev/null
+++ b/libc/sysdeps/linux/nios2/crti.S
@@ -0,0 +1,31 @@
+ .file "initfini.c"
+#APP
+
+ .section .init
+#NO_APP
+ .balign 4
+ .global __init
+ .type __init, @function
+__init:
+ addi sp, sp, -8
+ stw ra, 0(sp)
+ stw fp, 4(sp)
+#APP
+
+ .balign 4
+
+
+ .section .fini
+#NO_APP
+ .balign 4
+ .global __fini
+ .type __fini, @function
+__fini:
+ addi sp, sp, -8
+ stw ra, 0(sp)
+ stw fp, 4(sp)
+#APP
+ .balign 4
+
+
+ .ident "GCC: (GNU) 3.3.2"