gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gold / testsuite / ifuncvar1.c
CommitLineData
67181c72
ILT
1/* Test global variable initialized to hidden STT_GNU_IFUNC symbol. */
2
3int didit;
4
5extern void doit (void);
6
7void
8doit (void)
9{
10 didit = 1;
11}
12
13void (*get_foo (void)) (void) __asm__ ("foo");
14__asm__ (".type foo, %gnu_indirect_function");
15__asm__ (".hidden foo");
16
17void (*get_foo (void)) (void)
18{
19 return &doit;
20}
This page took 0.399851 seconds and 4 git commands to generate.