diff options
author | Andreas Jaeger <aj@suse.de> | 2001-05-18 07:41:19 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-05-18 07:41:19 +0000 |
commit | 2187e8c1510e6e31f86493534f2bc67424dd62c9 (patch) | |
tree | c3b387086c75d90f9690068799b6a9b5dfa74313 /sysdeps/powerpc | |
parent | 0e47171f2fc20c3d93410ae5828033658154fd6a (diff) | |
download | glibc-2187e8c1510e6e31f86493534f2bc67424dd62c9.tar.gz glibc-2187e8c1510e6e31f86493534f2bc67424dd62c9.tar.xz glibc-2187e8c1510e6e31f86493534f2bc67424dd62c9.zip |
Use __cxa_atexit.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/elf/libc-start.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/elf/libc-start.c b/sysdeps/powerpc/elf/libc-start.c index 8ac2eacef7..e0600ee297 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 |