repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated Malay translation for the bfd sub-directory
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-ifunc
/
pr18841b.c
blob
1e87469c5f9b9d01492d633f4f4e3bcffb678f1c
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
}