From aa10bfef77aad39cf9c0ab78f28907e25f5786cb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 18 Sep 2005 08:07:11 +0000 Subject: declare _init/_fini weak if UCLIBC_CTOR_DTOR is not defined --- libc/sysdeps/linux/arm/crt1.S | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc/sysdeps/linux/arm/crt1.S') diff --git a/libc/sysdeps/linux/arm/crt1.S b/libc/sysdeps/linux/arm/crt1.S index 01e1f61d3..82e1c8c42 100644 --- a/libc/sysdeps/linux/arm/crt1.S +++ b/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. */ -- cgit v1.2.3