Lines Matching refs:dlsym
54 // dlsym can't see the so which is loaded by RTLD_LOCAL.
55 TEST_PTR for_local_ptr = dlsym(RTLD_DEFAULT, "for_local");
57 t_error("dlsym RTLD_LOCAL so(%s) should failed but get succeed.\n", "for_local");
68 // dlsym can see the so which is loaded by RTLD_DEFAULT even without dependencies.
69 TEST_PTR for_global_ptr = dlsym(RTLD_DEFAULT, "for_global");
71 t_error("dlsym RTLD_GLOBAL so(%s) should succeed but get failed: %s \n", "for_global", dlerror());
139 func_ptr fn = (func_ptr)dlsym(handle, "test_number");
187 func_ptr global_fn = (func_ptr)dlsym(global_handler, "global_caller");
197 func_ptr local_fn = (func_ptr)dlsym(local_handler, "local_caller");
245 functype func = (functype)dlsym(handle, "foo_ctor");
265 i = dlsym(h, "i");
267 t_error("dlsym i failed: %s\n", dlerror());
270 f = (void (*)(void))dlsym(h, "f");
272 t_error("dlsym f failed: %s\n", dlerror());
280 i2 = dlsym(g, "i");
283 t_error("dlsym i should have failed\n");
284 if (dlsym(g, "main") != (void*)main)
285 t_error("dlsym main failed: %s\n", dlerror());
289 i2 = dlsym(g, "i");
291 t_error("dlsym i failed: %s\n", dlerror());