浏览代码

declare _init/_fini weak if UCLIBC_CTOR_DTOR is not defined

Mike Frysinger 20 年之前
父节点
当前提交
aa10bfef77
共有 1 个文件被更改,包括 8 次插入0 次删除
  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.  */