OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-selective/] [2.c] - Diff between revs 38 and 156

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 156
/* Normally we should loose foo and keep _start and _init.
/* Normally we should loose foo and keep _start and _init.
   With -u foo, we should keep that as well.  */
   With -u foo, we should keep that as well.  */
 
 
void _start() __asm__("_start");
void _start() __asm__("_start");
void _start()
void _start()
{
{
}
}
 
 
void __attribute__((section(".init")))
void __attribute__((section(".init")))
_init()
_init()
{
{
}
}
 
 
int foo() __asm__("foo");
int foo() __asm__("foo");
int foo()
int foo()
{
{
  static int x = 1;
  static int x = 1;
  return x++;
  return x++;
}
}
 
 

powered by: WebSVN 2.1.0

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