diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-11 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-11 08:29:22 +0000 |
commit | 5c12c8eecd5f2e06c200651e90befe85efcf166f (patch) | |
tree | dbaed54145d28357e3b145ad8631529ffd0c2344 /libc/misc | |
parent | a924265e43cf2fcad97fc9489da482a27b0faf93 (diff) |
Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.
He sent this patch to me a month ago, but I forgot to apply it...
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/internals/__uClibc_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index a81448fae..c2996735f 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -26,8 +26,8 @@ void __uClibc_main(int argc, char **argv, char **envp) #ifdef HAVE_ELF weak_alias(__environ, environ); -weak_alias(__uClibc_empty_func, __init_stdio); -weak_alias(__uClibc_empty_func, __stdio_close_all); +weak_symbol(__init_stdio); +weak_symbol(__stdio_close_all); #endif extern void __init_stdio(void); @@ -51,7 +51,8 @@ void __uClibc_main(int argc, char **argv, char **envp) * Initialize stdio here. In the static library case, this will * be bypassed if not needed because of the weak alias above. */ - __init_stdio(); + if (__init_stdio) + __init_stdio(); /* * Note: It is possible that any initialization done above could @@ -74,6 +75,7 @@ void __uClibc_main(int argc, char **argv, char **envp) char **__environ = 0; +#ifndef HAVE_ELF /* * Define an empty function and use it as a weak alias for the stdio * initialization routine. That way we don't pull in all the stdio @@ -87,9 +89,7 @@ void __uClibc_empty_func(void) { } -#ifndef HAVE_ELF weak_alias(__environ, environ); weak_alias(__uClibc_empty_func, __init_stdio); weak_alias(__uClibc_empty_func, __stdio_close_all); #endif - |