about summary refs log tree commit diff
path: root/elf/soinit.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-05 17:46:24 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-05 17:46:24 +0000
commitce33ee7caabb2803294ad7aa8108b039cc00c748 (patch)
tree79ce106edebbac9ab8b168848c39b2a0e7c402c5 /elf/soinit.c
parentf06d38b39fcf1ccaf52bc763498676321d36c81f (diff)
downloadglibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.tar.gz
glibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.tar.xz
glibc-ce33ee7caabb2803294ad7aa8108b039cc00c748.zip
* 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.
Diffstat (limited to 'elf/soinit.c')
-rw-r--r--elf/soinit.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/elf/soinit.c b/elf/soinit.c
index 2015ea2d66..29e4707ceb 100644
--- a/elf/soinit.c
+++ b/elf/soinit.c
@@ -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