Evgenii Stepanov | 6865082 | 2015-06-10 13:38:39 -0700 | [diff] [blame^] | 1 | #include <dlfcn.h> |
2 | extern "C" void *dlopen_b() { | ||||
3 | // This is not supposed to succeed. Even though this library has DT_RUNPATH | ||||
4 | // for libtest_dt_runpath_x.so, it is not taked into account for dlopen. | ||||
5 | void *handle = dlopen("libtest_dt_runpath_x.so", RTLD_NOW); | ||||
6 | return handle; | ||||
7 | } |