/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_api.cpp | 70 const char* crazy_context_get_error(crazy_context_t* context) { in crazy_context_get_error() argument 71 const char* error = context->error.c_str(); in crazy_context_get_error() 76 void crazy_context_clear_error(crazy_context_t* context) { in crazy_context_clear_error() argument 77 context->error = ""; in crazy_context_clear_error() 80 void crazy_context_set_load_address(crazy_context_t* context, in crazy_context_set_load_address() argument 82 context->load_address = load_address; in crazy_context_set_load_address() 85 size_t crazy_context_get_load_address(crazy_context_t* context) { in crazy_context_get_load_address() argument 86 return context->load_address; in crazy_context_get_load_address() 89 void crazy_context_set_file_offset(crazy_context_t* context, in crazy_context_set_file_offset() argument 91 context->file_offset = file_offset; in crazy_context_set_file_offset() [all …]
|
/ndk/sources/android/crazy_linker/tests/ |
D | test_search_path_list.cpp | 24 void CheckLibraryCantLoad(const char* library_name, crazy_context_t* context) { in CheckLibraryCantLoad() argument 27 if (crazy_library_open(&library, library_name, context)) in CheckLibraryCantLoad() 41 crazy_context_t* context) { in CheckLibrary() argument 44 if (!crazy_library_open(&library, library_name, context)) in CheckLibrary() 45 Panic("Could not open library %s: %s\n", crazy_context_get_error(context)); in CheckLibrary() 102 crazy_context_t* context = crazy_context_create(); in main() local 108 crazy_context_reset_search_paths(context); in main() 109 CheckLibraryCantLoad("libfoo.so", context); in main() 114 crazy_context_add_search_path_for_address(context, (void*)&main); in main() 115 CheckLibrary("libfoo.so", kFooSymbols, kFoo2Symbols, context); in main() [all …]
|
D | test_jni_hooks.cpp | 20 crazy_context_t* context = crazy_context_create(); in main() local 24 crazy_context_add_search_path_for_address(context, (void*)&main); in main() 26 crazy_context_set_java_vm(context, kJavaVM, JNI_VERSION_1_2); in main() 31 if (!crazy_library_open(&library, kJniLibName, context)) in main() 32 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 45 crazy_context_set_java_vm(context, kJavaVM, JNI_VERSION_1_6); in main() 48 if (crazy_library_open(&library, kJniLibName, context)) in main() 53 crazy_context_set_java_vm(context, NULL, 0); in main() 56 if (!crazy_library_open(&library, kJniLibName, context)) in main() 69 crazy_context_destroy(context); in main()
|
D | test_two_shared_relros.cpp | 32 crazy_context_t* context = crazy_context_create(); in main() local 37 crazy_context_add_search_path_for_address(context, (void*)&main); in main() 40 crazy_context_set_load_address(context, 0x20000000); in main() 41 foo.Init("libfoo_with_relro.so", context); in main() 43 crazy_context_set_load_address(context, 0x20800000); in main() 44 bar.Init("libbar_with_relro.so", context); in main() 61 foo.UseSharedRelro(context); in main() 65 bar.UseSharedRelro(context); in main() 88 foo.EnableSharedRelro(context); in main() 93 bar.EnableSharedRelro(context); in main() [all …]
|
D | bench_load_library.cpp | 83 crazy_context_t* context = crazy_context_create(); in main() local 86 crazy_context_add_search_path_for_address(context, in main() 94 if (!crazy_library_open(&library, library_path, context)) { in main() 95 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 106 if (!crazy_library_open(&library, library_path, context)) { in main() 107 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 122 if (!crazy_library_open(&library, library_path, context)) { in main() 123 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 137 if (!crazy_library_open(&library, library_path, context)) { in main() 138 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() [all …]
|
D | test_load_library_callbacks.cpp | 47 crazy_context_t* context = crazy_context_create(); in main() local 51 crazy_context_set_load_address(context, 0x20000000); in main() 57 crazy_context_set_callback_poster(context, &PostCallback, &callback); in main() 63 crazy_context_get_callback_poster(context, &poster, &poster_opaque); in main() 69 if (!crazy_library_open(&library, "libfoo.so", context)) { in main() 70 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 85 crazy_library_close_with_context(library, context); in main() 88 crazy_context_destroy(context); in main()
|
D | test_relocated_shared_relro.cpp | 30 crazy_context_t* context = crazy_context_create(); in main() local 44 crazy_context_set_load_address(context, CHILD_ADDRESS); in main() 45 foo.Init("libfoo_with_relro.so", context); in main() 50 foo.UseSharedRelro(context); in main() 72 crazy_context_set_load_address(context, PARENT_ADDRESS); in main() 73 foo.Init("libfoo_with_relro.so", context); in main() 79 foo.CreateSharedRelro(context, CHILD_ADDRESS); in main() 102 crazy_context_destroy(context); in main()
|
D | test_load_library.cpp | 19 crazy_context_t* context = crazy_context_create(); in main() local 23 crazy_context_set_load_address(context, 0x20000000); in main() 26 if (!crazy_library_open(&library, "libfoo.so", context)) { in main() 27 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 44 crazy_context_destroy(context); in main()
|
D | test_load_library_depends.cpp | 20 crazy_context_t* context = crazy_context_create(); in main() local 24 crazy_context_set_load_address(context, 0x20000000); in main() 27 if (!crazy_library_open(&library, "libbar.so", context)) { in main() 28 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 52 crazy_context_destroy(context); in main()
|
D | test_constructors_destructors.cpp | 24 crazy_context_t* context = crazy_context_create(); in main() local 30 crazy_context_set_load_address(context, 0x20000000); in main() 34 &library, "libfoo_with_static_constructor.so", context)) { in main() 35 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 62 crazy_context_destroy(context); in main()
|
D | test_shared_relro.cpp | 33 crazy_context_t* context = crazy_context_create(); in main() local 38 crazy_context_set_load_address(context, 0x20000000); in main() 39 foo.Init("libfoo_with_relro.so", context); in main() 56 foo.UseSharedRelro(context); in main() 79 foo.EnableSharedRelro(context); in main() 102 crazy_context_destroy(context); in main()
|
D | test_dl_wrappers.cpp | 23 crazy_context_t* context = crazy_context_create(); in main() local 27 if (!crazy_library_open(&library, "libzoo.so", context)) { in main() 28 Panic("Could not open library: %s\n", crazy_context_get_error(context)); in main() 47 crazy_context_destroy(context); in main()
|
D | test_util.h | 385 void Init(const char* name, crazy_context_t* context) { in Init() 388 if (!crazy_library_open(&this->library, name, context)) { in Init() 389 Panic("Could not open %s: %s\n", name, crazy_context_get_error(context)); in Init() 395 void CreateSharedRelro(crazy_context_t* context, size_t load_address) { in CreateSharedRelro() 397 context, in CreateSharedRelro() 404 crazy_context_get_error(context)); in CreateSharedRelro() 414 void EnableSharedRelro(crazy_context_t* context) { in EnableSharedRelro() 415 CreateSharedRelro(context, 0); in EnableSharedRelro() 416 UseSharedRelro(context); in EnableSharedRelro() 454 void UseSharedRelro(crazy_context_t* context) { in UseSharedRelro() [all …]
|
/ndk/sources/android/crazy_linker/include/ |
D | crazy_linker.h | 67 const char* crazy_context_get_error(crazy_context_t* context) _CRAZY_PUBLIC; 70 void crazy_context_clear_error(crazy_context_t* context) _CRAZY_PUBLIC; 74 void crazy_context_set_load_address(crazy_context_t* context, 78 size_t crazy_context_get_load_address(crazy_context_t* context) _CRAZY_PUBLIC; 82 void crazy_context_set_file_offset(crazy_context_t* context, 86 size_t crazy_context_get_file_offset(crazy_context_t* context); 98 crazy_context_t* context, 105 crazy_context_t* context, 112 void crazy_context_reset_search_paths(crazy_context_t* context) _CRAZY_PUBLIC; 123 void crazy_context_set_java_vm(crazy_context_t* context, [all …]
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/Unwind/ |
D | Unwind-sjlj.c | 350 _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context) { in _Unwind_GetLanguageSpecificData() argument 351 _Unwind_FunctionContext_t ufc = (_Unwind_FunctionContext_t) context; in _Unwind_GetLanguageSpecificData() 353 "=> 0x%0lX\n", context, ufc->lsda); in _Unwind_GetLanguageSpecificData() 359 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, in _Unwind_GetGR() argument 362 context, index); in _Unwind_GetGR() 363 _Unwind_FunctionContext_t ufc = (_Unwind_FunctionContext_t) context; in _Unwind_GetGR() 369 _LIBUNWIND_EXPORT void _Unwind_SetGR(struct _Unwind_Context *context, int index, in _Unwind_SetGR() argument 372 , context, index, new_value); in _Unwind_SetGR() 373 _Unwind_FunctionContext_t ufc = (_Unwind_FunctionContext_t) context; in _Unwind_SetGR() 379 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { in _Unwind_GetIP() argument [all …]
|
D | Unwind-EHABI.cpp | 73 struct _Unwind_Context* context, in ProcessDescriptors() argument 109 uintptr_t pc = _Unwind_GetIP(context); in ProcessDescriptors() 162 struct _Unwind_Context* context) { in unwindOneFrame() argument 189 state, ucbp, context, format, in unwindOneFrame() 196 return _Unwind_VRS_Interpret(context, unwindingData, startOffset, len); in unwindOneFrame() 214 _Unwind_Context* context, in _Unwind_VRS_Interpret() argument 224 _Unwind_VRS_Get(context, _UVRSC_CORE, UNW_ARM_SP, _UVRSD_UINT32, &sp); in _Unwind_VRS_Interpret() 229 _Unwind_VRS_Set(context, _UVRSC_CORE, UNW_ARM_SP, _UVRSD_UINT32, &sp); in _Unwind_VRS_Interpret() 241 _Unwind_VRS_Pop(context, _UVRSC_CORE, registers, _UVRSD_UINT32); in _Unwind_VRS_Interpret() 249 _Unwind_VRS_Get(context, _UVRSC_CORE, UNW_ARM_R0 + reg, in _Unwind_VRS_Interpret() [all …]
|
D | UnwindLevel1-gcc-ext.c | 63 _Unwind_GetDataRelBase(struct _Unwind_Context *context) { in _Unwind_GetDataRelBase() argument 64 (void)context; in _Unwind_GetDataRelBase() 65 _LIBUNWIND_TRACE_API("_Unwind_GetDataRelBase(context=%p)\n", context); in _Unwind_GetDataRelBase() 73 _Unwind_GetTextRelBase(struct _Unwind_Context *context) { in _Unwind_GetTextRelBase() argument 74 (void)context; in _Unwind_GetTextRelBase() 75 _LIBUNWIND_TRACE_API("_Unwind_GetTextRelBase(context=%p)\n", context); in _Unwind_GetTextRelBase() 170 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetCFA(struct _Unwind_Context *context) { in _Unwind_GetCFA() argument 171 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetCFA() 174 _LIBUNWIND_TRACE_API("_Unwind_GetCFA(context=%p) => 0x%llX\n", context, in _Unwind_GetCFA() 183 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context, in _Unwind_GetIPInfo() argument [all …]
|
D | UnwindLevel1.c | 405 _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context) { in _Unwind_GetLanguageSpecificData() argument 406 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetLanguageSpecificData() 412 "=> 0x%llx\n", context, (long long)result); in _Unwind_GetLanguageSpecificData() 424 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, in _Unwind_GetGR() argument 426 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_GetGR() 430 context, in _Unwind_GetGR() 438 _LIBUNWIND_EXPORT void _Unwind_SetGR(struct _Unwind_Context *context, int index, in _Unwind_SetGR() argument 441 "value=0x%0llX)\n", context, in _Unwind_SetGR() 443 unw_cursor_t *cursor = (unw_cursor_t *)context; in _Unwind_SetGR() 450 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { in _Unwind_GetIP() argument [all …]
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/include/ |
D | unwind.h | 107 struct _Unwind_Context* context); 112 struct _Unwind_Context* context); 138 struct _Unwind_Context* context); 145 struct _Unwind_Context *context, 192 extern _Unwind_VRS_Result _Unwind_VRS_Get(_Unwind_Context* context, 198 extern _Unwind_VRS_Result _Unwind_VRS_Set(_Unwind_Context* context, 204 extern _Unwind_VRS_Result _Unwind_VRS_Pop(_Unwind_Context *context, 210 extern _Unwind_Reason_Code _Unwind_VRS_Interpret(_Unwind_Context* context, 217 static inline uintptr_t _Unwind_GetGR(struct _Unwind_Context* context, in _Unwind_GetGR() argument 220 _Unwind_VRS_Get(context, _UVRSC_CORE, (uint32_t)index, _UVRSD_UINT32, &value); in _Unwind_GetGR() [all …]
|
/ndk/sources/cxx-stl/gabi++/src/ |
D | dynamic_cast.cc | 202 cast_context* context) in base_to_derived_cast() argument 204 const void* saved_dst_object = context->dst_object; in base_to_derived_cast() 205 bool is_dst_type = *type == *context->dst_type; in base_to_derived_cast() 207 context->dst_object = object; in base_to_derived_cast() 209 if (object == context->object in base_to_derived_cast() 210 && context->dst_object != NULL in base_to_derived_cast() 211 && *type == *context->src_type) in base_to_derived_cast() 213 if (context->result == NULL) in base_to_derived_cast() 214 context->result = context->dst_object; in base_to_derived_cast() 215 else if (context->result != context->dst_object) in base_to_derived_cast() [all …]
|
D | personality.cc | 57 if (version != 1 || unwind_exception == 0 || context == 0) { 68 scanEHTable(results, actions, native_exception, unwind_exception, context); 78 saveDataToBarrierCache(unwind_exception, context, results); 82 return continueUnwinding(unwind_exception, context); 100 scanEHTable(results, actions, native_exception, unwind_exception, context); 106 setRegisters(unwind_exception, context, results); 108 context, 114 scanEHTable(results, actions, native_exception, unwind_exception, context); 117 setRegisters(unwind_exception, context, results); 121 return continueUnwinding(unwind_exception, context);
|
D | helper_func_internal.h | 57 _Unwind_Context* context, 61 _Unwind_Context *context) 84 _Unwind_Context* context) _GABIXX_HIDDEN; 97 _Unwind_Context* context) { \ 111 if (unwind_exception->barrier_cache.sp == _Unwind_GetGR(context, UNWIND_STACK_REG)) { \ 117 return continueUnwinding(unwind_exception, context); \ 121 _Unwind_SetGR (context, UNWIND_POINTER_REG, reinterpret_cast<uint32_t>(unwind_exception)); 131 _Unwind_Exception* unwind_exception, _Unwind_Context* context) {
|
D | helper_func_internal.cc | 62 _Unwind_Context* context) { in scanEHTable() argument 89 const uint8_t* lsda = (const uint8_t*)_Unwind_GetLanguageSpecificData(context); in scanEHTable() 96 uintptr_t ip = _Unwind_GetIP(context) - 1; in scanEHTable() 97 uintptr_t funcStart = _Unwind_GetRegionStart(context); in scanEHTable() 349 _Unwind_Context* context, in setRegisters() argument 351 _Unwind_SetGR(context, 0, reinterpret_cast<uintptr_t>(unwind_exception)); in setRegisters() 352 _Unwind_SetGR(context, 1, static_cast<uintptr_t>(results.ttypeIndex)); in setRegisters() 353 _Unwind_SetIP(context, results.landingPad); in setRegisters() 357 _Unwind_Context *context) { in continueUnwinding() argument 358 if (__gnu_unwind_frame(ex, context) != _URC_OK) { in continueUnwinding() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
D | cxa_personality.cpp | 503 set_registers(_Unwind_Exception* unwind_exception, _Unwind_Context* context, in set_registers() argument 506 _Unwind_SetGR(context, __builtin_eh_return_data_regno(0), in set_registers() 508 _Unwind_SetGR(context, __builtin_eh_return_data_regno(1), in set_registers() 510 _Unwind_SetIP(context, results.landingPad); in set_registers() 537 _Unwind_Exception* unwind_exception, _Unwind_Context* context, in scan_eh_tab() argument 587 uintptr_t ip = _Unwind_GetIP(context) - 1; in scan_eh_tab() 590 uintptr_t funcStart = _Unwind_GetRegionStart(context); in scan_eh_tab() 925 _Unwind_Exception* unwind_exception, _Unwind_Context* context) in __gxx_personality_sj0() argument 927 if (version != 1 || unwind_exception == 0 || context == 0) in __gxx_personality_sj0() 937 scan_eh_tab(results, actions, native_exception, unwind_exception, context, in __gxx_personality_sj0() [all …]
|
/ndk/sources/host-tools/sed-4.2.1/m4/ |
D | selinux-context-h.m4 | 8 # Provide <selinux/context.h>, if necessary. 12 AC_CHECK_HEADERS([selinux/context.h], 14 [SELINUX_CONTEXT_H=selinux/context.h])
|