summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/crt1.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-05 09:09:22 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-05 09:09:22 +0000
commit3a3af36f1bef68c9942e9ef3fb83cc15aeabfcc0 (patch)
treecb5b06dfd527980b1b5cc6df57c5a46cf4f7953c /libc/sysdeps/linux/nios2/crt1.S
parent385a0b9d4fa0806c0f22e21d01f42b523c1b43cf (diff)
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.
Diffstat (limited to 'libc/sysdeps/linux/nios2/crt1.S')
-rw-r--r--libc/sysdeps/linux/nios2/crt1.S6
1 files changed, 5 insertions, 1 deletions
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 <asm/unistd.h>
.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