mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 16:50:57 +00:00
18 lines
234 B
C
18 lines
234 B
C
void foo() __attribute__((ifunc("resolve_foo")));
|
|
|
|
static void foo_impl() {}
|
|
extern void zoo(void);
|
|
void (*pz)(void) = zoo;
|
|
|
|
void test()
|
|
{
|
|
void (*pg)(void) = foo;
|
|
pg();
|
|
}
|
|
|
|
static void* resolve_foo()
|
|
{
|
|
pz();
|
|
return foo_impl;
|
|
}
|