Lines Matching refs:lib

53   void* lib = dlopen("libtest_elftls_shared_var_ie.so", RTLD_LOCAL | RTLD_NOW);  in TEST()  local
54 ASSERT_NE(nullptr, lib); in TEST()
56 auto bump_shared_var = reinterpret_cast<int(*)()>(dlsym(lib, "bump_shared_var")); in TEST()
91 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
92 ASSERT_NE(nullptr, lib); in TEST()
94 auto bump_shared_var = reinterpret_cast<int(*)()>(dlsym(lib, "bump_shared_var")); in TEST()
107 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
108 ASSERT_NE(nullptr, lib); in TEST()
110 auto bump_local_vars = reinterpret_cast<int(*)()>(dlsym(lib, "bump_local_vars")); in TEST()
139 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
140 ASSERT_NE(nullptr, lib); in TEST()
142 …auto missing_weak_dyn_tls_addr = reinterpret_cast<int*(*)()>(dlsym(lib, "missing_weak_dyn_tls_addr… in TEST()
157 auto lib = dlopen(soname, RTLD_LOCAL | RTLD_NOW); \ in TEST()
158 ASSERT_NE(nullptr, lib); \ in TEST()
159 reinterpret_cast<int(*)()>(dlsym(lib, "bump")); \ in TEST()
227 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
228 ASSERT_NE(nullptr, lib); in TEST()
230 auto bump_local_vars = reinterpret_cast<int(*)()>(dlsym(lib, "bump_local_vars")); in TEST()
236 ASSERT_EQ(0, dlclose(lib)); in TEST()
253 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
254 ASSERT_NE(nullptr, lib); in TEST()
256 auto bump_local_vars = reinterpret_cast<int(*)()>(dlsym(lib, "bump_local_vars")); in TEST()
267 dlclose(lib); in TEST()
277 void* lib = dlopen("libtest_elftls_shared_var.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
278 ASSERT_NE(nullptr, lib); in TEST()
280 int* var_addr = static_cast<int*>(dlsym(lib, "elftls_shared_var")); in TEST()
283 std::thread([lib] { in TEST()
284 int* var_addr = static_cast<int*>(dlsym(lib, "elftls_shared_var")); in TEST()
292 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
293 ASSERT_NE(nullptr, lib); in TEST()
294 auto get_var_addr = reinterpret_cast<int*(*)()>(dlsym(lib, "get_large_tls_var_addr")); in TEST()
297 int* var_addr = static_cast<int*>(dlsym(lib, "large_tls_var")); in TEST()
300 std::thread([lib, get_var_addr] { in TEST()
301 int* var_addr = static_cast<int*>(dlsym(lib, "large_tls_var")); in TEST()
314 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
315 ASSERT_NE(nullptr, lib); in TEST()
316 int* var_addr = static_cast<int*>(dlsym(lib, "large_tls_var")); in TEST()
323 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
325 auto get_local_addr = reinterpret_cast<void*(*)()>(dlsym(lib, "get_local_addr")); in TEST()
341 void* lib = dlopen("libtest_elftls_dynamic.so", RTLD_LOCAL | RTLD_NOW); in TEST() local
343 auto get_var_addr = reinterpret_cast<void*(*)()>(dlsym(lib, "get_large_tls_var_addr")); in TEST()