dyld-832.7.1.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / kernel-base-address-x86_64 / main.c
1
2 int g = 2;
3
4 int foo() {
5 return g;
6 }
7
8 __typeof(&foo) fooPtr = &foo;
9
10 __attribute__((section(("__HIB, __data"))))
11 int f = 1;
12
13 __attribute__((section(("__HIB, __data"))))
14 int* fPtr = &f;
15
16 __attribute__((section(("__HIB, __text"))))
17 int _start() {
18 return f + fooPtr();
19 }