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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-selective/] [2.c] - Blame information for rev 205

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
/* Normally we should loose foo and keep _start and _init.
2
   With -u foo, we should keep that as well.  */
3
 
4
void _start() __asm__("_start");
5
void _start()
6
{
7
}
8
 
9
void __attribute__((section(".init")))
10
_init()
11
{
12
}
13
 
14
int foo() __asm__("foo");
15
int foo()
16
{
17
  static int x = 1;
18
  return x++;
19
}

powered by: WebSVN 2.1.0

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