]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-RTLD_NOLOAD.dtest/init-b.c
81bc32eb783c47c3b42868867f61aa84ea561bd3
7 bool doneInitB
= false;
11 __attribute__((constructor
))
16 // "upward" link to libInitA.dylib
17 void* handle
= dlopen(RUN_DIR
"/libInitA.dylib", RTLD_NOLOAD
);
18 if ( handle
== NULL
) {
19 printf("[FAIL] dlopen-RTLD_NOLOAD-in-initializer: dlopen(libInitA.dylib, RTLD_NOLOAD) failed but it should have worked: %s\n", dlerror());