summary refs log tree commit diff
path: root/csu/elf-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'csu/elf-init.c')
-rw-r--r--csu/elf-init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/csu/elf-init.c b/csu/elf-init.c
index c538627dfd..dbd2a91cb7 100644
--- a/csu/elf-init.c
+++ b/csu/elf-init.c
@@ -1,5 +1,5 @@
 /* Startup support for ELF initializers/finalizers in the main executable.
-   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005 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
@@ -104,9 +104,13 @@ __libc_csu_init (void)
 #endif
 }
 
+/* This function should not be used anymore.  We run the executable's
+   destructor now just like any other.  We cannot remove the function,
+   though.  */
 void
 __libc_csu_fini (void)
 {
+#if 0
 #ifdef HAVE_INITFINI_ARRAY
   size_t i = __fini_array_end - __fini_array_start;
   while (i-- > 0)
@@ -114,4 +118,5 @@ __libc_csu_fini (void)
 #endif
 
   _fini ();
+#endif
 }