Skip to content

Commit

Permalink
Use __cxa_atexit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Jaeger committed May 18, 2001
1 parent 0e47171 commit 2187e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sysdeps/powerpc/elf/libc-start.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2187e8c

Please sign in to comment.