Home
last modified time | relevance | path

Searched refs:dlsym (Results 1 - 25 of 223) sorted by relevance

123456789

/third_party/musl/libc-test/src/functionalext/ldso_cfi/
H A Dldso_cfi_check.c102 *(void **)(&get_count) = dlsym(handle, "get_count"); in cfi_slowpath_function_test_0002()
103 *(void **)(&get_type_id) = dlsym(handle, "get_type_id"); in cfi_slowpath_function_test_0002()
104 *(void **)(&get_address) = dlsym(handle, "get_address"); in cfi_slowpath_function_test_0002()
105 *(void **)(&get_diag) = dlsym(handle, "get_diag"); in cfi_slowpath_function_test_0002()
106 *(void **)(&get_global_address) = dlsym(handle, "get_global_address"); in cfi_slowpath_function_test_0002()
135 *(void **)(&get_count) = dlsym(handle, "get_count"); in cfi_slowpath_function_test_0003()
136 *(void **)(&get_type_id) = dlsym(handle, "get_type_id"); in cfi_slowpath_function_test_0003()
137 *(void **)(&get_address) = dlsym(handle, "get_address"); in cfi_slowpath_function_test_0003()
138 *(void **)(&get_diag) = dlsym(handle, "get_diag"); in cfi_slowpath_function_test_0003()
139 *(void **)(&get_global_address) = dlsym(handl in cfi_slowpath_function_test_0003()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/
H A Dldso_dlsym_test.cpp34 * @tc.desc: Test dlsym can find and use sofile symbol.
42 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "GetAnswer")); in HWTEST_F()
51 * @tc.desc: Test dlsym find and use a not found symbol.
59 EXPECT_EQ(dlsym(handle, ""), nullptr); in HWTEST_F()
66 * @tc.desc: Test dlsym failures.
74 EXPECT_EQ(dlsym(handle, "NotFoundSymbol"), nullptr); in HWTEST_F()
81 * @tc.desc: Test dlsym can open symbol from dependence.
89 int (*func)() = reinterpret_cast<int (*)()>(dlsym(handle, "GetNum")); in HWTEST_F()
98 * @tc.desc: Test dlsym find and use symbol from dependent sofile with preload.
109 EXPECT_EQ(nullptr, dlsym(RTLD_DEFAUL in HWTEST_F()
[all...]
H A Dldso_cfi_test.cpp60 FuncTypeRetVoidPtr globalAddress = reinterpret_cast<FuncTypeRetVoidPtr>(dlsym(handle, "GetGlobalAddress")); in HWTEST_F()
66 FuncTypeRetSize getCount = reinterpret_cast<FuncTypeRetSize>(dlsym(handle2, "GetCount")); in HWTEST_F()
68 FuncTypeRetUint64 getTypeId = reinterpret_cast<FuncTypeRetUint64>(dlsym(handle2, "GetTypeId")); in HWTEST_F()
70 FuncTypeRetVoidPtr getAddress = reinterpret_cast<FuncTypeRetVoidPtr>(dlsym(handle2, "GetAddress")); in HWTEST_F()
72 globalAddress = reinterpret_cast<FuncTypeRetVoidPtr>(dlsym(handle2, "GetGlobalAddress")); in HWTEST_F()
97 FuncTypeRetSize getCount = reinterpret_cast<FuncTypeRetSize>(dlsym(handle, "GetCount")); in HWTEST_F()
99 FuncTypeRetUint64 getTypeId = reinterpret_cast<FuncTypeRetUint64>(dlsym(handle, "GetTypeId")); in HWTEST_F()
101 FuncTypeRetVoidPtr getAddress = reinterpret_cast<FuncTypeRetVoidPtr>(dlsym(handle, "GetAddress")); in HWTEST_F()
103 FuncTypeRetVoidPtr getDiag = reinterpret_cast<FuncTypeRetVoidPtr>(dlsym(handle, "GetDiag")); in HWTEST_F()
105 FuncTypeRetVoidPtr globalAddress = reinterpret_cast<FuncTypeRetVoidPtr>(dlsym(handl in HWTEST_F()
[all...]
H A Dldso_dlclose_test.cpp28 int* testValue = reinterpret_cast<int*>(dlsym(handle, "g_testNumber")); in HWTEST_F()
31 void* fn = dlsym(handle, "DlopenCommon"); in HWTEST_F()
35 testValue = reinterpret_cast<int*>(dlsym(RTLD_DEFAULT, "g_testNumber")); in HWTEST_F()
37 fn = dlsym(RTLD_DEFAULT, "DlopenCommon"); in HWTEST_F()
43 FuncTypeBool fn = reinterpret_cast<FuncTypeBool>(dlsym(handle, symbolName)); in CloseTestFunc()
109 fn = reinterpret_cast<FuncTypeVoid>(dlsym(RTLD_DEFAULT, "dlclose_test_a")); in HWTEST_F()
113 fn = reinterpret_cast<FuncTypeVoid>(dlsym(RTLD_DEFAULT, "dlclose_test_b")); in HWTEST_F()
117 fn = reinterpret_cast<FuncTypeVoid>(dlsym(RTLD_DEFAULT, "dlclose_test_c")); in HWTEST_F()
123 fn = reinterpret_cast<FuncTypeVoid>(dlsym(RTLD_DEFAULT, "dlclose_test_a")); in HWTEST_F()
127 fn = reinterpret_cast<FuncTypeVoid>(dlsym(RTLD_DEFAUL in HWTEST_F()
[all...]
H A Dldso_dlopen_test.cpp36 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "RelocationTest")); in HWTEST_F()
58 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(RTLD_DEFAULT, "LoadOrderTest01")); in HWTEST_F()
61 fn = reinterpret_cast<FuncTypeRetInt>(dlsym(RTLD_DEFAULT, "LoadOrderTest02")); in HWTEST_F()
85 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "DlopenOrderTest003")); in HWTEST_F()
108 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "DlopenTest005")); in HWTEST_F()
129 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "DlopenTestDependency")); in HWTEST_F()
178 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "DlopenOrderTest003")); in HWTEST_F()
195 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "RelocationTest")); in HWTEST_F()
202 fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "RelocationTest")); in HWTEST_F()
210 * @tc.desc: Test when the mode of dlopen is RTLD_GLOBAL, dlsym ca
[all...]
H A Dldso_dlopen_ext_test.cpp31 void* fn = dlsym(handle, "DlopenCommon"); in HWTEST_F()
48 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "DlopenCommon")); in HWTEST_F()
51 int* testValue = reinterpret_cast<int*>(dlsym(handle, "g_testNumber")); in HWTEST_F()
73 void* testValue = dlsym(handle, "g_testNumber"); in HWTEST_F()
122 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handle, "GetRelroValue")); in HWTEST_F()
126 int* testValue = reinterpret_cast<int*>(dlsym(handle, "g_testNumber")); in HWTEST_F()
152 void* fn = dlsym(handle, "GetRelroValue"); in HWTEST_F()
154 void* fn1 = dlsym(handle, "GetRelroRecursiveValue"); in HWTEST_F()
156 void* testValue = dlsym(handle, "g_testNumber"); in HWTEST_F()
222 FuncTypeRetInt fn = reinterpret_cast<FuncTypeRetInt>(dlsym(handl in WriteRelro()
[all...]
/third_party/musl/src/ldso/powerpc64/
H A Ddlsym.s2 .global dlsym
4 .type dlsym,@function
5 dlsym: label
6 addis 2, 12, .TOC.-dlsym@ha
7 addi 2, 2, .TOC.-dlsym@l
8 .localentry dlsym,.-dlsym
11 .size dlsym, .-dlsym
/third_party/musl/libc-test/src/functionalext/ldso_randomization/
H A Dldso_randomization_test.c68 int *i = dlsym(handle, "g_test"); in dlopen_randomization_0200()
75 TEST_FUNC test = (TEST_FUNC)dlsym(handle, "test_f"); in dlopen_randomization_0200()
128 * and call the dlsym interface to get symbol address
141 i = dlsym(handle, "i"); in dlopen_randomization_0600()
148 test = (TEST_FUNC)dlsym(handle, "test"); in dlopen_randomization_0600()
187 int *i = dlsym(handle, "g_test"); in dlopen_ext_randomization_0200()
194 TEST_FUNC test = (TEST_FUNC)dlsym(handle, "test_f"); in dlopen_ext_randomization_0200()
249 * and call the dlsym interface to get symbol address
263 i = dlsym(handle, "i"); in dlopen_ext_randomization_0600()
270 test = (TEST_FUNC)dlsym(handl in dlopen_ext_randomization_0600()
[all...]
/third_party/musl/src/ldso/powerpc/
H A Ddlsym.s2 .global dlsym
4 .type dlsym,@function
5 dlsym: label
8 .size dlsym, .-dlsym
/third_party/musl/libc-test/src/functional/
H A Ddlopen.c54 // dlsym can't see the so which is loaded by RTLD_LOCAL. in dlopen_so_used_by_dlsym()
55 TEST_PTR for_local_ptr = dlsym(RTLD_DEFAULT, "for_local"); in dlopen_so_used_by_dlsym()
57 t_error("dlsym RTLD_LOCAL so(%s) should failed but get succeed.\n", "for_local"); in dlopen_so_used_by_dlsym()
68 // dlsym can see the so which is loaded by RTLD_DEFAULT even without dependencies. in dlopen_so_used_by_dlsym()
69 TEST_PTR for_global_ptr = dlsym(RTLD_DEFAULT, "for_global"); in dlopen_so_used_by_dlsym()
71 t_error("dlsym RTLD_GLOBAL so(%s) should succeed but get failed: %s \n", "for_global", dlerror()); in dlopen_so_used_by_dlsym()
139 func_ptr fn = (func_ptr)dlsym(handle, "test_number"); in dlopen_dlclose_weak()
187 func_ptr global_fn = (func_ptr)dlsym(global_handler, "global_caller"); in dlopen_global_test()
197 func_ptr local_fn = (func_ptr)dlsym(local_handler, "local_caller"); in dlopen_global_test()
245 functype func = (functype)dlsym(handl in dlclose_with_tls_test()
[all...]
H A Ddlclose_reset.c34 test_s_var = (TEST_S_VAR)dlsym( h, "test_static_var"); in main()
36 t_error("dlsym test_static_var failed: %s\n", dlerror()); in main()
38 test_g_var = (TEST_G_VAR)dlsym( h, "test_global_var"); in main()
52 insp_s_var = (INSP_S_VAR)dlsym( g, "ret_static"); in main()
54 t_error("dlsym ret_static failed: %s\n", dlerror()); in main()
56 insp_g_var = (INSP_G_VAR)dlsym( g, "ret_global"); in main()
/third_party/musl/src/ldso/mipsn32/
H A Ddlsym.s2 .global dlsym
4 .type dlsym,@function
5 dlsym: label
6 lui $3, %hi(%neg(%gp_rel(dlsym)))
7 addiu $3, $3, %lo(%neg(%gp_rel(dlsym)))
/third_party/musl/src/ldso/mips64/
H A Ddlsym.s2 .global dlsym
4 .type dlsym,@function
5 dlsym: label
6 lui $3, %hi(%neg(%gp_rel(dlsym)))
7 daddiu $3, $3, %lo(%neg(%gp_rel(dlsym)))
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
H A DSystemInfo_libpci.cpp50 (Alloc = reinterpret_cast<decltype(Alloc)>(dlsym(mHandle, "pci_alloc"))) != nullptr && in LibPCI()
51 (Init = reinterpret_cast<decltype(Init)>(dlsym(mHandle, "pci_init"))) != nullptr && in LibPCI()
52 (Cleanup = reinterpret_cast<decltype(Cleanup)>(dlsym(mHandle, "pci_cleanup"))) != in LibPCI()
54 (ScanBus = reinterpret_cast<decltype(ScanBus)>(dlsym(mHandle, "pci_scan_bus"))) != in LibPCI()
56 (FillInfo = reinterpret_cast<decltype(FillInfo)>(dlsym(mHandle, "pci_fill_info"))) != in LibPCI()
59 dlsym(mHandle, "pci_lookup_name"))) != nullptr && in LibPCI()
61 dlsym(mHandle, "pci_read_byte"))) != nullptr; in LibPCI()
/third_party/skia/third_party/externals/oboe/src/aaudio/
H A DAAudioLoader.cpp141 void *proc = dlsym(mLibHandle, functionName); in load_I_PPB()
147 void *proc = dlsym(mLibHandle, functionName); in load_CPH_I()
153 void *proc = dlsym(mLibHandle, functionName); in load_V_PBI()
159 void *proc = dlsym(mLibHandle, functionName); in load_V_PBPDPV()
165 void *proc = dlsym(mLibHandle, functionName); in load_V_PBPEPV()
171 void *proc = dlsym(mLibHandle, functionName); in load_I_PSI()
177 void *proc = dlsym(mLibHandle, functionName); in load_I_PS()
183 void *proc = dlsym(mLibHandle, functionName); in load_L_PS()
189 void *proc = dlsym(mLibHandle, functionName); in load_F_PS()
195 void *proc = dlsym(mLibHandl in load_B_PS()
[all...]
/third_party/libuv/src/unix/
H A Ddarwin-proctitle.c94 dlsym(core_foundation_handle, "CFStringCreateWithCString"); in uv__set_process_title()
96 dlsym(core_foundation_handle, "CFBundleGetBundleWithIdentifier"); in uv__set_process_title()
98 dlsym(core_foundation_handle, "CFBundleGetDataPointerForName"); in uv__set_process_title()
100 dlsym(core_foundation_handle, "CFBundleGetFunctionPointerForName"); in uv__set_process_title()
137 *(void **)(&pCFBundleGetInfoDictionary) = dlsym(core_foundation_handle, in uv__set_process_title()
139 *(void **)(&pCFBundleGetMainBundle) = dlsym(core_foundation_handle, in uv__set_process_title()
/third_party/musl/libc-test/src/functionalext/symver/
H A Ddlsym.c43 functype func = (functype)dlsym(handle, dso_no_symver_symbol); in dlsym_no_symver_0100()
76 functype func = (functype)dlsym(handle, dso_symbol_invalid); in dlsym_no_symver_0200()
124 functype func = (functype)dlsym(handle, dso_easy_symver_symbol); in dlsym_easy_symver_0200()
157 functype func = (functype)dlsym(handle, dso_symbol_invalid); in dlsym_easy_symver_0300()
205 functype func = (functype)dlsym(handle, dso_hard_symver_if_symbol); in dlsym_hard_symver_0200()
238 functype func = (functype)dlsym(handle, dso_symbol_invalid); in dlsym_hard_symver_0300()
/third_party/node/deps/uv/src/unix/
H A Ddarwin-proctitle.c94 dlsym(core_foundation_handle, "CFStringCreateWithCString"); in uv__set_process_title()
96 dlsym(core_foundation_handle, "CFBundleGetBundleWithIdentifier"); in uv__set_process_title()
98 dlsym(core_foundation_handle, "CFBundleGetDataPointerForName"); in uv__set_process_title()
100 dlsym(core_foundation_handle, "CFBundleGetFunctionPointerForName"); in uv__set_process_title()
137 *(void **)(&pCFBundleGetInfoDictionary) = dlsym(core_foundation_handle, in uv__set_process_title()
139 *(void **)(&pCFBundleGetMainBundle) = dlsym(core_foundation_handle, in uv__set_process_title()
/third_party/selinux/libselinux/src/
H A Dload_policy.c84 vers_max = dlsym(libsepolh, "sepol_policy_kern_vers_max"); in selinux_mkload_policy()
86 vers_min = dlsym(libsepolh, "sepol_policy_kern_vers_min"); in selinux_mkload_policy()
89 policy_file_create = dlsym(libsepolh, "sepol_policy_file_create"); in selinux_mkload_policy()
91 policy_file_free = dlsym(libsepolh, "sepol_policy_file_free"); in selinux_mkload_policy()
93 policy_file_set_mem = dlsym(libsepolh, "sepol_policy_file_set_mem"); in selinux_mkload_policy()
95 policydb_create = dlsym(libsepolh, "sepol_policydb_create"); in selinux_mkload_policy()
97 policydb_free = dlsym(libsepolh, "sepol_policydb_free"); in selinux_mkload_policy()
99 policydb_read = dlsym(libsepolh, "sepol_policydb_read"); in selinux_mkload_policy()
101 policydb_set_vers = dlsym(libsepolh, "sepol_policydb_set_vers"); in selinux_mkload_policy()
103 policydb_to_image = dlsym(libsepol in selinux_mkload_policy()
[all...]
/third_party/musl/src/ldso/arm/
H A Ddlsym.s3 .global dlsym
5 .type dlsym,%function
6 dlsym: label
/third_party/musl/src/ldso/aarch64/
H A Ddlsym.s1 .global dlsym
3 .type dlsym,%function
4 dlsym: label
/third_party/musl/src/ldso/riscv32/
H A Ddlsym.s1 .global dlsym
3 .type dlsym, %function
4 dlsym: label
/third_party/musl/src/ldso/riscv64/
H A Ddlsym.s1 .global dlsym
3 .type dlsym, %function
4 dlsym: label
/third_party/musl/src/ldso/or1k/
H A Ddlsym.s1 .global dlsym
3 .type dlsym,@function
4 dlsym: label
/third_party/musl/src/ldso/microblaze/
H A Ddlsym.s1 .global dlsym
3 .type dlsym,@function
4 dlsym: label

Completed in 7 milliseconds

123456789