13 lines · c
1// This test checks that IFUNC trampoline is properly recognised by BOLT2 3static void foo() {}4static void bar() {}5 6extern int use_foo;7 8static void *resolver_foo(void) { return use_foo ? foo : bar; }9 10__attribute__((ifunc("resolver_foo"))) void ifoo();11 12void _start() { ifoo(); }13