diff options
author | Roland McGrath <roland@gnu.org> | 1995-05-20 00:13:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-05-20 00:13:43 +0000 |
commit | a2fe9c76a9d7645c63288eda807e01a6b1901d29 (patch) | |
tree | 68882cda9fe373eda0ecaa70503d34812186138d /set-init.c | |
parent | 2b83a2a4d978012cdf78b648337c31091e20526d (diff) | |
download | glibc-a2fe9c76a9d7645c63288eda807e01a6b1901d29.zip glibc-a2fe9c76a9d7645c63288eda807e01a6b1901d29.tar.gz glibc-a2fe9c76a9d7645c63288eda807e01a6b1901d29.tar.bz2 |
Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
args on stack from kernel.
* posix/Makefile, sysdeps/alpha/Makefile,
* sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
* Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
in the absence of CVS dirs.
* hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
kernel on the stack properly.
* set-init.c: Never call _init/_fini; just run __libc_subinit.
* Makerules (LDFLAGS-c.so): Add -nostartfiles.
* mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
* configure.in: Move defaulting of --with-elf and --with-gnu-*
based on host os outside the AC_CACHE_VAL for the sysdirs
calculation.
* Makeconfig (localedir, nlsdir): New variables.
* values.h: New file.
* Makefile (headers): Add values.h.
* locale/Makefile (distribute): Add error.h.
* locale/localedef.c: Include "error.h".
(main): Use error_message_count instead of warning_cntr.
Diffstat (limited to 'set-init.c')
-rw-r--r-- | set-init.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -19,24 +19,5 @@ Cambridge, MA 02139, USA. */ #include <stdlib.h> #include "set-hooks.h" -DEFINE_HOOK_RUNNER (__libc_subinit, __libc_subinit_runner, +DEFINE_HOOK_RUNNER (__libc_subinit, __libc_init, (int argc, char **argv, char **envp), (argc, argv, envp)) - -void -__libc_init (argc, argv, envp) - int argc; - char **argv; - char **envp; -{ - __libc_subinit_runner (argc, argv, envp); - -#ifdef HAVE_ELF - { - /* These functions are defined in crti.o to run the .init and .fini - sections, which are used for initializers in ELF. */ - extern void _init __P ((void)), _fini __P ((void)); - atexit (_fini); /* Arrange for _fini to run at exit. */ - _init (); - } -#endif -} |