Home | History | Annotate | Download | only in ld-elf
      1 #include <stdio.h>
      2 
      3 void
      4 foo (void)
      5 {
      6   printf ("TEST2\n");
      7 }
      8 
      9 static void (*const init_array []) (void)
     10   __attribute__ ((used, section (".init_array"), aligned (sizeof (void *))))
     11   = { foo };
     12