Last change
on this file since 1968 was 1968, checked in by Silvan Scherrer, 8 years ago |
binutils: update vendor to version 2.27. some files are missing, due to a svn bug with @ in the name. But as it's only in the testsuite I don't care atm
|
File size:
301 bytes
|
Line | |
---|
1 | void foo() __attribute__((ifunc("resolve_foo")));
|
---|
2 |
|
---|
3 | static void foo_impl() {}
|
---|
4 |
|
---|
5 | extern void abort (void);
|
---|
6 | void test()
|
---|
7 | {
|
---|
8 | void (*pg)(void) = foo;
|
---|
9 | if (pg != foo_impl)
|
---|
10 | abort ();
|
---|
11 | pg();
|
---|
12 | }
|
---|
13 |
|
---|
14 | static void* resolve_foo()
|
---|
15 | {
|
---|
16 | extern void zoo(void);
|
---|
17 |
|
---|
18 | void (*pz)(void) = zoo;
|
---|
19 | pz();
|
---|
20 | return foo_impl;
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.