]> git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/extra-prelink-info/main.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / extra-prelink-info / main.c
1
2 // Add a large buffer so that we know we have a bunch of stuff in __DATA
3 // and can more easily see that all the segments have moved around correctly, not just
4 // got lucky that all are the same size
5 __attribute__((used))
6 char buffer[1024 * 16];
7
8 int f = 0;
9 int *gs[] = { &f, &f, 0, (int*)&buffer[0], (int*)&buffer[1] };
10
11 int _start() {
12 return *gs[0] + *gs[1];;
13 }