summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-18 08:07:11 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-18 08:07:11 +0000
commitaa10bfef77aad39cf9c0ab78f28907e25f5786cb (patch)
tree55bc5eeb77c81a4189060f75a5fcf24d4071da34 /libc/sysdeps/linux/arm
parent24acea547572659fd2041803882411b68ff0d6eb (diff)
declare _init/_fini weak if UCLIBC_CTOR_DTOR is not defined
Diffstat (limited to 'libc/sysdeps/linux/arm')
-rw-r--r--libc/sysdeps/linux/arm/crt1.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/crt1.S b/libc/sysdeps/linux/arm/crt1.S
index 01e1f61d3..82e1c8c42 100644
--- a/libc/sysdeps/linux/arm/crt1.S
+++ b/libc/sysdeps/linux/arm/crt1.S
@@ -132,6 +132,14 @@ _start:
.word _fini(GOT)
.word _init(GOT)
.word main(GOT)
+#else
+# ifdef __UCLIBC_CTOR_DTOR__
+ .type _init,%function
+ .type _fini,%function
+# else
+ .weak _fini
+ .weak _init
+# endif
#endif
/* Define a symbol for the first piece of initialized data. */