3 static void init (void) __attribute__ ((constructor));
8 write (STDOUT_FILENO, "DSO init\n", 9);
11 static void fini (void) __attribute__ ((destructor));
16 write (STDOUT_FILENO, "DSO fini\n", 9);
22 write (STDOUT_FILENO, "DSO init array 0\n", 17);
28 write (STDOUT_FILENO, "DSO init array 1\n", 17);
34 write (STDOUT_FILENO, "DSO init array 2\n", 17);
37 void (*const init_array []) (void)
38 __attribute__ ((section (".init_array"), aligned (sizeof (void *)))) =
48 write (STDOUT_FILENO, "DSO fini array 0\n", 17);
54 write (STDOUT_FILENO, "DSO fini array 1\n", 17);
60 write (STDOUT_FILENO, "DSO fini array 2\n", 17);
63 void (*const fini_array []) (void)
64 __attribute__ ((section (".fini_array"), aligned (sizeof (void *)))) =