Browse Source

declare _init/_fini weak if UCLIBC_CTOR_DTOR is not defined

Mike Frysinger 19 years ago
parent
commit
aa10bfef77
1 changed files with 8 additions and 0 deletions
  1. 8 0
      libc/sysdeps/linux/arm/crt1.S

+ 8 - 0
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.  */