1 diff -urN uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/crt0.c uClibc-0.9.28.2/libc/sysdeps/linux/cris/crt0.c
2 --- uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/crt0.c 2007-05-18 00:27:56.000000000 +0200
3 +++ uClibc-0.9.28.2/libc/sysdeps/linux/cris/crt0.c 2007-05-18 00:32:08.000000000 +0200
8 -extern void __uClibc_main(int argc, char **argv, char **envp)
9 - __attribute__ ((__noreturn__));
10 -extern void __uClibc_start_main(int argc, char **argv, char **envp,
11 - void (*app_init)(void), void (*app_fini)(void))
12 - __attribute__ ((__noreturn__));
13 +extern void __uClibc_main(int (*main)(int, char **, char **), int argc,
14 + char **argv, void (*app_init)(void), void (*app_fini)(void),
15 + void (*rtld_fini)(void), void *stack_end) __attribute__ ((__noreturn__));
17 extern void weak_function _init(void);
18 extern void weak_function _fini(void);
24 -#if defined L_crt0 || ! defined __UCLIBC_CTOR_DTOR__
25 - /* Leave control to the libc */
26 - __uClibc_main(argc, argv, environ);
28 - __uClibc_start_main(argc, argv, environ, _init, _fini);
30 + __uClibc_main(__mainp, argc, argv, 0, 0, 0, 0);