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