summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/crti.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-16 11:09:34 +0000
committerEric Andersen <andersen@codepoet.org>2004-07-16 11:09:34 +0000
commitc3d50a69839f8d80fc7244fde6e4a57e5e39dd36 (patch)
treec9e27baac7541384b806cce0845f28c1f59b5a2e /libc/sysdeps/linux/nios2/crti.S
parent3cf731bf40f153a73373798085d1f45a80b972d6 (diff)
Pete Popov writes:
Hi Erik, I'm not sure why the NIOS support is not in uClibc -- perhaps the patch was rejected or never submitted? In any case, I'm playing with some NIOS stuff and created this patch against 0.9.26. The work was done by Microtronix. I'm not sure who else contributed to it. It would be great to have the NIOS support available in uClibc so developers don't have to go searching for these bits. Pete
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"