New Cell SPU port.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / init.c
1 #include <stdio.h>
2
3 static void
4 init_0 (void)
5 {
6 printf ("init array 0\n");
7 }
8
9 static void
10 init_1 (void)
11 {
12 printf ("init array 1\n");
13 }
14
15 static void
16 init_2 (void)
17 {
18 printf ("init array 2\n");
19 }
20
21 void (*const init_array []) (void)
22 __attribute__ ((section (".init_array"),
23 aligned (sizeof (void *)))) =
24 {
25 &init_0,
26 &init_1,
27 &init_2
28 };
29
30 int
31 main (void)
32 {
33 return 0;
34 }
This page took 0.038671 seconds and 4 git commands to generate.