1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* configure.in: If init_array/fini_array support is not available,

bail out.
	* config.h.in: Remove trace of optional init_array/fini_array support.
	* config.make.in: Likewise.
	* csu/elf-init.c: Likewise.
	* dlfcn/dlfcn.c: Likewise.
	* elf/soinit.c: Likewise.
	* sysdeps/ia64/elf/initfinit.c: Likewise.
This commit is contained in:
Ulrich Drepper
2005-11-05 17:46:24 +00:00
parent f06d38b39f
commit ce33ee7caa
11 changed files with 46 additions and 170 deletions

View File

@ -78,14 +78,8 @@ __libc_global_ctors (void)
/* This function becomes the DT_FINI termination function
for the C library. */
#ifndef HAVE_INITFINI_ARRAY
void _fini (void) __attribute__ ((section (".fini"))); /* Just for kicks. */
void
_fini (void)
#else
void
__libc_fini (void)
#endif
{
/* Call destructor functions. */
run_hooks (__DTOR_LIST__);
@ -101,7 +95,6 @@ __libc_fini (void)
# endif
#endif
}
#ifdef HAVE_INITFINI_ARRAY
void (*_fini_ptr) (void) __attribute__ ((section (".fini_array")))
= &__libc_fini;
#endif