diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-09 06:40:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-09 06:40:46 +0000 |
commit | 411597d4f47de6b37275ee4fdf9fc45cc2a30fcb (patch) | |
tree | 6f42b12d32aec4804c99d6733ac0c22e3bcbc88e /libc/sysdeps/linux/i386/crt0.S | |
parent | 69b2edf81ec8955b59fba03b2a553bd8b5995b58 (diff) |
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
Diffstat (limited to 'libc/sysdeps/linux/i386/crt0.S')
-rw-r--r-- | libc/sysdeps/linux/i386/crt0.S | 22 |
1 files changed, 1 insertions, 21 deletions
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 |