Skip to content

Commit b98db44

Browse files
committed
[BOLT] Make ifunc test not statically-resolvable. NFC
This fixes a breakage caused by e976385
1 parent 8075f0d commit b98db44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bolt/test/AArch64/ifunc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
// REL_CHECK: [[#REL_SYMB_ADDR]] {{.*}} FUNC {{.*}} resolver_foo
5252

5353
static void foo() {}
54+
static void bar() {}
5455

55-
static void *resolver_foo(void) { return foo; }
56+
extern int use_foo;
57+
58+
static void *resolver_foo(void) { return use_foo ? foo : bar; }
5659

5760
__attribute__((ifunc("resolver_foo"))) void ifoo();
5861

0 commit comments

Comments
 (0)