From 411597d4f47de6b37275ee4fdf9fc45cc2a30fcb Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 9 Feb 2001 06:40:46 +0000 Subject: Revert stdio to initializing itself. Not quite a pretty but that ensures that we don't blow up by using too much stack space, and simplifies the job of supporting new architectures, since they don't have to mess with calling foo init functions in crt0 and cleaning up the resulting damage. -Erik --- libc/sysdeps/linux/i386/crt0.S | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'libc/sysdeps/linux/i386/crt0.S') diff --git a/libc/sysdeps/linux/i386/crt0.S b/libc/sysdeps/linux/i386/crt0.S index 1d01a5dcc..a87287bc3 100644 --- a/libc/sysdeps/linux/i386/crt0.S +++ b/libc/sysdeps/linux/i386/crt0.S @@ -25,6 +25,7 @@ Cambridge, MA 02139, USA. */ argv[0] program name (pointer) argv[1...N] program args (pointers) argv[argc-1] end of args (integer) + NULL env[0...N] environment variables (pointers) NULL */ @@ -33,8 +34,6 @@ Cambridge, MA 02139, USA. */ .global _start .global exit .global main -.global __stdio_close_all -.global _void_void_null_func .global _start_exit .text @@ -78,11 +77,6 @@ _start: movl 8(%esp),%eax movl %eax,__environ - /* Tell libc to initialize anything it needs to do */ - call __libc_init - /* call __malloc_init */ - call __init_stdio - /* Ok, now run main() */ call main pushl %eax @@ -99,20 +93,6 @@ _start_exit: _void_void_null_func: ret -.weak __libc_init -__libc_init = _void_void_null_func - -/* -.weak __malloc_init -__malloc_init = _void_void_null_func -*/ - -.weak __init_stdio -__init_stdio = _void_void_null_func - -.weak __stdio_close_all -__stdio_close_all = _void_void_null_func - .data __environ: .long 0 -- cgit v1.2.3