3 static void init (void) __attribute__ ((constructor
));
8 write (STDOUT_FILENO
, "init\n", 5);
11 static void fini (void) __attribute__ ((destructor
));
16 write (STDOUT_FILENO
, "fini\n", 5);
22 write (STDOUT_FILENO
, "preinit array 0\n", 16);
28 write (STDOUT_FILENO
, "preinit array 1\n", 16);
34 write (STDOUT_FILENO
, "preinit array 2\n", 16);
37 void (*const preinit_array
[]) (void)
38 __attribute__ ((section (".preinit_array"), aligned (sizeof (void *)))) =
48 write (STDOUT_FILENO
, "init array 0\n", 13);
54 write (STDOUT_FILENO
, "init array 1\n", 13);
60 write (STDOUT_FILENO
, "init array 2\n", 13);
63 void (*const init_array
[]) (void)
64 __attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
74 write (STDOUT_FILENO
, "fini array 0\n", 13);
80 write (STDOUT_FILENO
, "fini array 1\n", 13);
86 write (STDOUT_FILENO
, "fini array 2\n", 13);
89 void (*const fini_array
[]) (void)
90 __attribute__ ((section (".fini_array"), aligned (sizeof (void *)))) =