From c3d50a69839f8d80fc7244fde6e4a57e5e39dd36 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 16 Jul 2004 11:09:34 +0000 Subject: 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 --- libc/sysdeps/linux/nios2/crti.S | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libc/sysdeps/linux/nios2/crti.S (limited to 'libc/sysdeps/linux/nios2/crti.S') 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" -- cgit v1.2.3