* elf.c (bfd_section_from_shdr): Remove extraneous breaks.
[binutils.git] / ld / testsuite / ld-elf / preinit.c
blob9ef2a89c6c3c41b283f5922f705b50b03dfc0c0f
1 #include <stdio.h>
3 static void
4 preinit_0 (void)
6 printf ("preinit array 0\n");
9 static void
10 preinit_1 (void)
12 printf ("preinit array 1\n");
15 static void
16 preinit_2 (void)
18 printf ("preinit array 2\n");
21 void (*const preinit_array []) (void)
22 __attribute__ ((section (".preinit_array"),
23 aligned (sizeof (void *)))) =
25 &preinit_0,
26 &preinit_1,
27 &preinit_2
30 int
31 main (void)
33 return 0;