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

Subversion Repositories open8_urisc

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

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

Line No. Rev Author Line
1 27 khays
/* Test STT_GNU_IFUNC symbol reference in a shared library.  */
2
 
3
extern int foo (void);
4
 
5
typedef int (*foo_p) (void);
6
 
7
extern foo_p get_foo_p (void);
8
extern foo_p get_foo (void);
9
 
10
foo_p foo_ptr = foo;
11
 
12
foo_p
13
get_foo_p (void)
14
{
15
  return foo_ptr;
16
}
17
 
18
foo_p
19
get_foo (void)
20
{
21
  return foo;
22
}

powered by: WebSVN 2.1.0

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