blob: 34f2881228423dc9d6c045526b099c98516e16dc [file] [log] [blame]
#include <dlfcn.h>
extern "C" void *dlopen_b() {
// This is not supposed to succeed. Even though this library has DT_RUNPATH
// for libtest_dt_runpath_x.so, it is not taked into account for dlopen.
void *handle = dlopen("libtest_dt_runpath_x.so", RTLD_NOW);
return handle;
}