From fe4154e930920d612cf6499f3f3fd419d6e0fe37 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Wed, 25 May 2005 23:42:40 +0000 Subject: Adapt startup code in x86 and PPC to almost match glibc. _init vs. __libc_csu_init and _fini vs. __libc_csu_fini remains to do. --- libc/misc/internals/__uClibc_main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libc/misc/internals') diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 70dc07328..63302c3a2 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -164,10 +164,11 @@ void attribute_hidden (*__rtld_fini)(void) = NULL; * are initialized, just before we call the application's main function. */ void __attribute__ ((__noreturn__)) -__uClibc_start_main(int argc, char **argv, char **envp, +__uClibc_start_main(int (*main)(int argc, char **argv, char **envp), + int argc, char **argv, char **envp, void (*app_init)(void), void (*app_fini)(void), - int (*main)(int argc, char **argv, char **envp), - void (*rtld_fini)(void)) + void (*rtld_fini)(void), + void *stack_end) { #ifdef __ARCH_HAS_MMU__ unsigned long *aux_dat; -- cgit v1.2.3