Browse Source

declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off

Joakim Tjernlund 20 years ago
parent
commit
201e52dd6f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/powerpc/crt1.S

+ 5 - 0
libc/sysdeps/linux/powerpc/crt1.S

@@ -16,6 +16,7 @@
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
+#include <features.h>
 /* Integer registers.  */
 #define r0      0
 #define r1      1
@@ -36,6 +37,10 @@
 	.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