sinan 31ac3d092b
[BOLT] Add .iplt support to x86 (#106513)
Add X86 support for parsing .iplt section and symbols.
2024-09-23 18:22:43 +08:00

13 lines
282 B
C

// This test checks that IFUNC trampoline is properly recognised by BOLT
static void foo() {}
static void bar() {}
extern int use_foo;
static void *resolver_foo(void) { return use_foo ? foo : bar; }
__attribute__((ifunc("resolver_foo"))) void ifoo();
void _start() { ifoo(); }