9 extern void (*__preinit_array_end[])(void)
__attribute__((weak));
10 extern void (*__init_array_start[])(void)
__attribute__((weak));
11 extern void (*__init_array_end[])(void)
__attribute__((weak));
12 extern void (*__fini_array_start[])(void)
__attribute__((weak));
13 extern void (*__fini_array_end[])(void)
__attribute__((weak));
18 for(
size_t i = 0; i < count; i++)
23 count = __init_array_end - __init_array_start;
24 for(
size_t i = 0; i < count; i++)
26 __init_array_start[i]();
32 size_t count = __fini_array_end - __fini_array_start;
33 for(
size_t i = count - 1; i > 0; i--)
35 __fini_array_start[i]();
__attribute__((noreturn, weak)) void __assert_fail(const char *expr
void __libc_fini_array(void)
void * memset(void *dest, int c, size_t n)
Copies the value c into each of the first n characters of the object pointed to by dest.
void __libc_init_array(void)
void(* __preinit_array_start[])(void)