OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-elf/] [preinit.c] - Blame information for rev 179

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
#include <stdio.h>
2
 
3
static void
4
preinit_0 (void)
5
{
6
  printf ("preinit array 0\n");
7
}
8
 
9
static void
10
preinit_1 (void)
11
{
12
  printf ("preinit array 1\n");
13
}
14
 
15
static void
16
preinit_2 (void)
17
{
18
  printf ("preinit array 2\n");
19
}
20
 
21
void (*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
 
30
int
31
main (void)
32
{
33
  return 0;
34
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.