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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [testsuite/] [ld-selective/] [2.c] - Rev 262

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

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

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

powered by: WebSVN 2.1.0

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