Lines Matching refs:lib
52 void* lib = dlopen("libtest_elftls_shared_var_ie.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
53 ASSERT_NE(nullptr, lib); in TEST()
55 auto bump_shared_var = reinterpret_cast<int(*)()>(dlsym(lib, "bump_shared_var")); in TEST()
90 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
91 ASSERT_NE(nullptr, lib); in TEST()
93 auto bump_shared_var = reinterpret_cast<int(*)()>(dlsym(lib, "bump_shared_var")); in TEST()
106 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
107 ASSERT_NE(nullptr, lib); in TEST()
109 auto bump_local_vars = reinterpret_cast<int(*)()>(dlsym(lib, "bump_local_vars")); in TEST()
138 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
139 ASSERT_NE(nullptr, lib); in TEST()
141 …auto missing_weak_dyn_tls_addr = reinterpret_cast<int*(*)()>(dlsym(lib, "missing_weak_dyn_tls_addr… in TEST()
156 auto lib = dlopen(soname, RTLD_LOCAL | RTLD_NOW); \ in TEST()
157 ASSERT_NE(nullptr, lib); \ in TEST()
158 reinterpret_cast<int(*)()>(dlsym(lib, "bump")); \ in TEST()
226 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
227 ASSERT_NE(nullptr, lib); in TEST()
229 auto bump_local_vars = reinterpret_cast<int(*)()>(dlsym(lib, "bump_local_vars")); in TEST()
235 ASSERT_EQ(0, dlclose(lib)); in TEST()
252 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
253 ASSERT_NE(nullptr, lib); in TEST()
255 auto bump_local_vars = reinterpret_cast<int(*)()>(dlsym(lib, "bump_local_vars")); in TEST()
266 dlclose(lib); in TEST()
276 void* lib = dlopen("libtest_elftls_shared_var.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
277 ASSERT_NE(nullptr, lib); in TEST()
279 int* var_addr = static_cast<int*>(dlsym(lib, "elftls_shared_var")); in TEST()
282 std::thread([lib] { in TEST()
283 int* var_addr = static_cast<int*>(dlsym(lib, "elftls_shared_var")); in TEST()
291 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
292 ASSERT_NE(nullptr, lib); in TEST()
293 auto get_var_addr = reinterpret_cast<int*(*)()>(dlsym(lib, "get_large_tls_var_addr")); in TEST()
296 int* var_addr = static_cast<int*>(dlsym(lib, "large_tls_var")); in TEST()
299 std::thread([lib, get_var_addr] { in TEST()
300 int* var_addr = static_cast<int*>(dlsym(lib, "large_tls_var")); in TEST()
313 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
314 ASSERT_NE(nullptr, lib); in TEST()
315 int* var_addr = static_cast<int*>(dlsym(lib, "large_tls_var")); in TEST()
322 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
324 auto get_local_addr = reinterpret_cast<void*(*)()>(dlsym(lib, "get_local_addr")); in TEST()