1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
* sysdeps/arm/init-first.c: Likewise.
	* sysdeps/generic/init-first.c: Likewise.
	* sysdeps/i386/init-first.c: Likewise.
	* sysdeps/sh/init-first.c: Likewise.
This commit is contained in:
Ulrich Drepper
2001-08-11 20:40:40 +00:00
parent 44ad8377fb
commit 0ed24bc67f
8 changed files with 37 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* Initialization code run first thing by the ELF startup code. For SH.
Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
Copyright (C) 1995,1996,1997,1998,2000,2001 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
@ -20,7 +20,9 @@
#include <unistd.h>
extern void __libc_init (int, char **, char **);
#ifdef USE_NONOPTION_FLAGS
extern void __getopt_clean_environment (char **);
#endif
extern void __libc_global_ctors (void);
int __libc_multiple_libcs = 1;
@ -35,8 +37,10 @@ init (int *data)
__environ = envp;
__libc_init (argc, argv, envp);
#ifdef USE_NONOPTION_FLAGS
/* This is a hack to make the special getopt in GNU libc working. */
__getopt_clean_environment (envp);
#endif
}
#ifdef SHARED