mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Use __cxa_atexit.
This commit is contained in:
@ -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. */
|
/* Register the destructor of the dynamic linker if there is any. */
|
||||||
if (rtld_fini != NULL)
|
if (rtld_fini != NULL)
|
||||||
atexit (rtld_fini);
|
__cxa_atexit ((void (*) (void *)) rtld_fini, NULL, NULL);
|
||||||
|
|
||||||
/* Call the initializer of the libc. */
|
/* Call the initializer of the libc. */
|
||||||
#ifdef SHARED
|
#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. */
|
/* Register the destructor of the program, if any. */
|
||||||
if (stinfo->fini)
|
if (stinfo->fini)
|
||||||
atexit (stinfo->fini);
|
__cxa_atexit ((void (*) (void *)) stinfo->fini, NULL, NULL);
|
||||||
|
|
||||||
/* Call the initializer of the program, if any. */
|
/* Call the initializer of the program, if any. */
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
|
Reference in New Issue
Block a user