diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-06-29 00:43:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-06-29 00:43:31 +0000 |
commit | 665f338e8679bd38c85f77162f773cf0669dbb2b (patch) | |
tree | 78234fff60bbcbd1ad519103886898923ce86a5d /libc/sysdeps/linux | |
parent | a7334dddd491692d6924d4d9c27b7bbbbc7f539f (diff) |
declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/i386/crt1.S | 5 |
1 files changed, 5 insertions, 0 deletions
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: |