From 665f338e8679bd38c85f77162f773cf0669dbb2b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 29 Jun 2005 00:43:31 +0000 Subject: declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off --- libc/sysdeps/linux/i386/crt1.S | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/i386/crt1.S b/libc/sysdeps/linux/i386/crt1.S index 53a545526..12299c687 100644 --- a/libc/sysdeps/linux/i386/crt1.S +++ b/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: -- cgit v1.2.3