summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-06-29 22:42:27 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-06-29 22:42:27 +0000
commit201e52dd6ffec156bef553431275426dfa2bb4f7 (patch)
tree49cb2d38e2be2eb1473dd7717d09a280d06be178
parentcc90599160e581982dd106a1292878d9ed51e315 (diff)
downloaduClibc-alpine-201e52dd6ffec156bef553431275426dfa2bb4f7.tar.bz2
uClibc-alpine-201e52dd6ffec156bef553431275426dfa2bb4f7.tar.xz
declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off
-rw-r--r--libc/sysdeps/linux/powerpc/crt1.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/powerpc/crt1.S b/libc/sysdeps/linux/powerpc/crt1.S
index eef12faf0..c042462e9 100644
--- a/libc/sysdeps/linux/powerpc/crt1.S
+++ b/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