[uClibc-cvs] uClibc/libc/sysdeps/linux/cris crt0.c,1.4,1.5
Manuel Novoa III
mjn3 at uclibc.org
Tue Dec 2 04:58:47 UTC 2003
Update of /var/cvs/uClibc/libc/sysdeps/linux/cris
In directory winder:/tmp/cvs-serv28423
Modified Files:
crt0.c
Log Message:
Put in a dummy reference to main so busybox will link.
Index: crt0.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/cris/crt0.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- crt0.c 27 Aug 2003 13:13:47 -0000 1.4
+++ crt0.c 2 Dec 2003 04:58:41 -0000 1.5
@@ -35,6 +35,12 @@
extern void weak_function _init(void);
extern void weak_function _fini(void);
+/* Stick in a dummy reference to main(), so that if an application
+ * is linking when the main() function is in a static library (.a)
+ * we can be sure that main() actually gets linked in */
+extern void main(int argc,void *argv,void *envp);
+void (*__mainp)(int argc,void *argv,void *envp) = main;
+
static void
start1 (int argc, char **argv)
{
More information about the uClibc-cvs
mailing list