From 3a3af36f1bef68c9942e9ef3fb83cc15aeabfcc0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 5 Jan 2007 09:09:22 +0000 Subject: Atle Nissestad writes: The attached patch fixes compilation of the current svn on the nios2 platform, and updates the crt1/n/i.S files to get CTOR/DTOR-support to work. --- libc/sysdeps/linux/nios2/crtn.S | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'libc/sysdeps/linux/nios2/crtn.S') diff --git a/libc/sysdeps/linux/nios2/crtn.S b/libc/sysdeps/linux/nios2/crtn.S index dfac2ab22..de00fd132 100644 --- a/libc/sysdeps/linux/nios2/crtn.S +++ b/libc/sysdeps/linux/nios2/crtn.S @@ -1,30 +1,14 @@ - .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" -- cgit v1.2.3