9 /* atexit.c and __stdio_exit.c override these. the latter is linked
10 * as a consequence of linking either __toread.c or __towrite.c. */
11 weak_alias(dummy
, __funcs_on_exit
);
12 weak_alias(dummy
, __stdio_exit
);
13 weak_alias(dummy
, _fini
);
15 extern weak hidden
void (*const __fini_array_start
)(void), (*const __fini_array_end
)(void);
17 static void libc_exit_fini(void)
19 uintptr_t a
= (uintptr_t)&__fini_array_end
;
20 for (; a
>(uintptr_t)&__fini_array_start
; a
-=sizeof(void(*)()))
21 (*(void (**)())(a
-sizeof(void(*)())))();
25 weak_alias(libc_exit_fini
, __libc_exit_fini
);
27 _Noreturn
void exit(int code
)