Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2003-11-21  David Mosberger  <davidm@hpl.hp.com>

	* elf/soinit.c (_fini): Put _fini() in .init_array section if
	HAVE_INITFINI_ARRAY is defined.
  • Loading branch information
Ulrich Drepper committed Nov 26, 2003
1 parent 0135bde commit 6def43e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2003-11-21 David Mosberger <davidm@hpl.hp.com>

* elf/soinit.c (_fini): Put _fini() in .init_array section if
HAVE_INITFINI_ARRAY is defined.

2003-11-25 Ulrich Drepper <drepper@redhat.com>

* sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
Expand Down
9 changes: 9 additions & 0 deletions elf/soinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,14 @@ __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__);
Expand All @@ -96,3 +101,7 @@ _fini (void)
# endif
#endif
}
#ifdef HAVE_INITFINI_ARRAY
void (*_fini_ptr) (void) __attribute__ ((section (".fini_array")))
= &__libc_fini;
#endif

0 comments on commit 6def43e

Please sign in to comment.