diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-16 11:09:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-16 11:09:34 +0000 |
commit | c3d50a69839f8d80fc7244fde6e4a57e5e39dd36 (patch) | |
tree | c9e27baac7541384b806cce0845f28c1f59b5a2e /libc/sysdeps/linux/nios2/crtn.S | |
parent | 3cf731bf40f153a73373798085d1f45a80b972d6 (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/crtn.S')
-rw-r--r-- | libc/sysdeps/linux/nios2/crtn.S | 30 |
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" |