]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/chained-fixups-many-binds.dtest/main.c
2 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/libFoo.dylib -install_name $RUN_DIR/libFoo.dylib
3 // BUILD: $CC main.c -o $BUILD_DIR/chained-fixups-many-binds.exe $BUILD_DIR/libFoo.dylib -Wl,-fixup_chains
5 // RUN: ./chained-fixups-many-binds.exe
7 // Here's how to generate this monster
8 // ( for i in `seq 1 65000`; do echo "void foo$i() { }"; done ) > foo.c
9 // ( for i in `seq 1 65000`; do echo "extern void foo$i();"; done ) > foo.h
10 // ( for i in `seq 1 65000`; do echo "__attribute__((used)) void* use$i = (void*)&foo$i;"; done ) > uses.h
18 printf("[BEGIN] chained-fixups-many-binds\n");
19 printf("[PASS] chained-fixups-many-binds\n");