Use __cxa_atexit.

This commit is contained in:
Andreas Jaeger 2001-05-18 07:41:19 +00:00
parent 0e47171f2f
commit 2187e8c151
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ BP_SYM (__libc_start_main) (int argc, char *__unbounded *__unbounded ubp_av,
/* Register the destructor of the dynamic linker if there is any. */
if (rtld_fini != NULL)
atexit (rtld_fini);
__cxa_atexit ((void (*) (void *)) rtld_fini, NULL, NULL);
/* Call the initializer of the libc. */
#ifdef SHARED
@ -101,7 +101,7 @@ BP_SYM (__libc_start_main) (int argc, char *__unbounded *__unbounded ubp_av,
/* Register the destructor of the program, if any. */
if (stinfo->fini)
atexit (stinfo->fini);
__cxa_atexit ((void (*) (void *)) stinfo->fini, NULL, NULL);
/* Call the initializer of the program, if any. */
#ifdef SHARED