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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [testsuite/] [ifuncvar1.c] - Blame information for rev 279

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

Line No. Rev Author Line
1 159 khays
/* Test global variable initialized to hidden STT_GNU_IFUNC symbol.  */
2
 
3
int didit;
4
 
5
extern void doit (void);
6
 
7
void
8
doit (void)
9
{
10
  didit = 1;
11
}
12
 
13
void (*get_foo (void)) (void) __asm__ ("foo");
14
__asm__ (".type foo, %gnu_indirect_function");
15
__asm__ (".hidden foo");
16
 
17
void (*get_foo (void)) (void)
18
{
19
  return &doit;
20
}

powered by: WebSVN 2.1.0

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