From: Andreas Jaeger Date: Fri, 18 May 2001 07:41:19 +0000 (+0000) Subject: Use __cxa_atexit. X-Git-Tag: cvs/pre-lgplv2_1~178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2187e8c1510e6e31f86493534f2bc67424dd62c9;p=thirdparty%2Fglibc.git Use __cxa_atexit. --- diff --git a/sysdeps/powerpc/elf/libc-start.c b/sysdeps/powerpc/elf/libc-start.c index 8ac2eacef7f..e0600ee2972 100644 --- a/sysdeps/powerpc/elf/libc-start.c +++ b/sysdeps/powerpc/elf/libc-start.c @@ -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