diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-06 17:21:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-06 17:21:43 +0000 |
commit | 7dea968e78d0903e5f6069f2bf72a9961f49465f (patch) | |
tree | 20dd8ba18cd1960f9c60d8ae73adea86de2a253e /sysdeps/generic | |
parent | 4b7814cf8a55c034f34e02c14207bb271b3aee50 (diff) | |
download | glibc-7dea968e78d0903e5f6069f2bf72a9961f49465f.tar.gz glibc-7dea968e78d0903e5f6069f2bf72a9961f49465f.tar.xz glibc-7dea968e78d0903e5f6069f2bf72a9961f49465f.zip |
Update.
1998-03-06 17:04 Ulrich Drepper <drepper@cygnus.com> * libc.map: Add _dl_debug_impcalls, _dl_debug_fd, _dl_sysdep_output, __libc_start_main. * csu/Makefile (routines): Add libc-start. * elf/dl-error.c: Remove declaration of _dl_argv. Include <unitsd.h>. * elf/dl-lookup.c: Likewise. * elf/dl-version.c: Likewise. * sysdeps/i386/dl-machine.h: Likewise. * elf/link.h: Declare _dl_argv, _dl_debug_fd. Declare _dl_sysdep_output. Make _dl_sysdep_fatal, _dl_sysdep_error and _dl_sysdep_message macros which use _dl_sysdep_output. * elf/dl-fini.c: Write out which destructor is called while debugging. * elf/dl-init.c: Likewise for constructor. * elf/dl-load.c: Use _dl_debug_message instead of _dl_sysdep_message. * elf/dl-misc.c: Remove _dl_sysdep_fatal, _dl_sysdep_error and _dl_sysdep_message. Add _dl_sysdep_output. * elf/rtld.c: Recognize LD_DEBUG_OUTPUT. Set _dl_debug_fd if this file can be opened. For LD_DEBUG=libs also set _dl_debug_impcalls. * sysdeps/generic/dl-cache.c: Include unistd.h. * sysdeps/generic/libc-start.c: New file. * sysdeps/i386/elf/start.S: Don't call main directly, call * sysdeps/unix/sysv/linux/libc-start.c: New file. __libc_start_main instead. * elf/Makefile ($(objpfx)ld.so): Add $(load-map-file) as dependency.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/dl-cache.c | 2 | ||||
-rw-r--r-- | sysdeps/generic/libc-start.c | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c index 43a987a1fd..2a2be570e9 100644 --- a/sysdeps/generic/dl-cache.c +++ b/sysdeps/generic/dl-cache.c @@ -18,7 +18,7 @@ Boston, MA 02111-1307, USA. */ #include <link.h> -#include <stddef.h> +#include <unistd.h> #include <sys/mman.h> /* System-dependent function to read a file's whole contents diff --git a/sysdeps/generic/libc-start.c b/sysdeps/generic/libc-start.c new file mode 100644 index 0000000000..12419887a1 --- /dev/null +++ b/sysdeps/generic/libc-start.c @@ -0,0 +1,24 @@ +/* Copyright (C) 1998 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +int +__libc_start_main (int (*main) (int, char **, char **), int argc, + char **argv, char **envp) +{ + return (*main) (argc, argv, envp); +} |