[uClibc-cvs] uClibc/libc/sysdeps/linux/arm crt0.S,1.15,1.16
Erik Andersen
andersen at codepoet.org
Wed Nov 27 23:34:32 UTC 2002
Update of /var/cvs/uClibc/libc/sysdeps/linux/arm
In directory winder:/tmp/cvs-serv365/libc/sysdeps/linux/arm
Modified Files:
crt0.S
Log Message:
Make support for global constructors and global destructors be
configurable, so people who do not need or want ctor/dtor support
can disable it and make their binaries a little bit smaller.
-Erik
Index: crt0.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/arm/crt0.S,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- crt0.S 15 Nov 2002 00:52:59 -0000 1.15
+++ crt0.S 27 Nov 2002 23:33:57 -0000 1.16
@@ -80,6 +80,7 @@
ldr r2,[sp, #8]
#endif
+#ifdef __UCLIBC_CTOR_DTOR__
/* Store the address of _init in r3 as an argument to main() */
ldr r3, =_init
@@ -89,6 +90,9 @@
/* Ok, now run uClibc's main() -- shouldn't return */
bl __uClibc_start_main
+#else
+ bl __uClibc_main
+#endif
/* Crash if somehow `exit' returns anyways. */
bl abort
More information about the uClibc-cvs
mailing list