]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/chained-fixups-many-binds.dtest/main.c
35b0e779cf233368272c796c5c2c9bc8d6ed79ce
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
17 #include "test_support.h"
19 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {