Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-ifunc/pr18841c.c

18 lines
234 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
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;
}