Przeglądaj źródła

declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off

Mike Frysinger 20 lat temu
rodzic
commit
665f338e86
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      libc/sysdeps/linux/i386/crt1.S

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

@@ -57,8 +57,13 @@
 	.text
 	.globl	_start
 	.type	_start,@function
+#if defined(__UCLIBC_CTOR_DTOR__)
 	.type	_init,%function
 	.type	_fini,%function
+#else
+	.weak	_init
+	.weak	_fini
+#endif
 	.type	main,%function
 	.type	__uClibc_main,%function
 _start: