]> git.saurik.com Git - apple/dyld.git/blame - testing/kernel-cache-tests/hello-world-kernel/main.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / hello-world-kernel / main.c
CommitLineData
bc3b7c8c
A
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))
6char buffer[1024 * 16];
7
8int f = 0;
9int *gs[] = { &f, &f, 0, (int*)&buffer[0], (int*)&buffer[1] };
10
11int _start() {
12 return *gs[0] + *gs[1];;
13}