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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [testsuite/] [ifuncvar1.c] - Rev 159

Compare with Previous | Blame | View Log

/* Test global variable initialized to hidden STT_GNU_IFUNC symbol.  */
 
int didit;
 
extern void doit (void);
 
void
doit (void)
{
  didit = 1;
}
 
void (*get_foo (void)) (void) __asm__ ("foo");
__asm__ (".type foo, %gnu_indirect_function");
__asm__ (".hidden foo");
 
void (*get_foo (void)) (void)
{
  return &doit;
}
 

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.