projects
/
apple
/
dyld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
dyld-733.8.tar.gz
[apple/dyld.git]
/
testing
/
test-cases
/
interpose-resolver.dtest
/
foo.c
1
#include <stdlib.h>
2
3
4
static int
foo_ten
()
5
{
6
return
10
;
7
}
8
9
10
// This foo is a "resolver" function that return the actual address of "foo"
11
void
*
foo
()
12
{
13
__asm__
(
".symbol_resolver _foo"
);
// magic until we have compiler support
14
return
&
foo_ten
;
15
}
16
17