specified RTLD_LOCAL when calling dlopen()

This commit is contained in:
hyunghwan.chung 2020-10-20 10:10:37 +00:00
parent a01c9fc3f1
commit 1f4b517f2d

View File

@ -1416,8 +1416,8 @@ static void assert_fail (moo_t* moo, const moo_bch_t* expr, const moo_bch_t* fil
#elif defined(USE_DLFCN) #elif defined(USE_DLFCN)
# define sys_dl_error() dlerror() # define sys_dl_error() dlerror()
# define sys_dl_open(x) dlopen(x,RTLD_NOW) # define sys_dl_open(x) dlopen(x,RTLD_NOW | RTLD_LOCAL)
# define sys_dl_openext(x) dlopen(x,RTLD_NOW) # define sys_dl_openext(x) dlopen(x,RTLD_NOW | RTLD_LOCAL)
# define sys_dl_close(x) dlclose(x) # define sys_dl_close(x) dlclose(x)
# define sys_dl_getsym(x,n) dlsym(x,n) # define sys_dl_getsym(x,n) dlsym(x,n)