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/crt1.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/nios2/crt1.S') diff --git a/libc/sysdeps/linux/nios2/crt1.S b/libc/sysdeps/linux/nios2/crt1.S index d5e1bd7c2..0ba8d59e6 100644 --- a/libc/sysdeps/linux/nios2/crt1.S +++ b/libc/sysdeps/linux/nios2/crt1.S @@ -16,9 +16,13 @@ #include .global _start - .type __start,@function + .type _start,@function + .type _init,%function + .type _fini,%function +#ifndef __UCLIBC_CTOR_DTOR__ .weak _init .weak _fini +#endif .type main,@function .type __uClibc_main,@function .type __h_errno_location, @function -- cgit v1.2.3