mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
12 lines
159 B
C
12 lines
159 B
C
|
int foo (int x) __attribute__ ((ifunc ("resolve_foo")));
|
||
|
|
||
|
static int foo_impl(int x)
|
||
|
{
|
||
|
return x;
|
||
|
}
|
||
|
|
||
|
void *resolve_foo (void)
|
||
|
{
|
||
|
return (void *) foo_impl;
|
||
|
}
|