/art/tools/create_minidebuginfo/ |
D | create_minidebuginfo.cc | 68 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char* name) { in WriteMinidebugInfo() argument 70 if (ELF32_ST_TYPE(sym.st_info) == STT_FUNC && sym.st_size != 0) { in WriteMinidebugInfo() 71 syms.emplace(name, sym); in WriteMinidebugInfo() 74 reader.VisitDynamicSymbols([&](Elf_Sym sym, const char* name) { in WriteMinidebugInfo() argument 77 if (it != syms.end() && it->second.st_value == sym.st_value) { in WriteMinidebugInfo() 86 const Elf_Sym& sym = entry.second; in WriteMinidebugInfo() local 88 symtab->Add(name_idx, text, sym.st_value, sym.st_size, STB_GLOBAL, STT_FUNC); in WriteMinidebugInfo()
|
/art/compiler/debug/ |
D | elf_debug_writer.cc | 210 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char*) { in MakeElfFileForJIT() argument 211 DCHECK_EQ(sym.st_value, method_info.code_address + CompiledMethod::CodeDelta(isa)); in MakeElfFileForJIT() 212 DCHECK_EQ(sym.st_size, method_info.code_size); in MakeElfFileForJIT() 275 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char* name) { in PackElfFileForJIT() argument 276 if (is_removed_symbol(sym.st_value)) { in PackElfFileForJIT() 279 sym.st_name = strtab->Write(name); in PackElfFileForJIT() 280 symbols.push_back(sym); in PackElfFileForJIT() 281 min_address = std::min<uint64_t>(min_address, sym.st_value); in PackElfFileForJIT() 282 max_address = std::max<uint64_t>(max_address, sym.st_value + sym.st_size); in PackElfFileForJIT()
|
/art/libelffile/elf/ |
D | elf_utils.h | 83 static inline void SetBindingAndType(Elf32_Sym* sym, unsigned char b, unsigned char t) { in SetBindingAndType() argument 84 sym->st_info = (b << 4) + (t & 0x0f); in SetBindingAndType()
|
D | elf_builder.h | 365 Elf_Sym sym = Elf_Sym(); in Add() local 366 sym.st_name = name; in Add() 367 sym.st_value = addr; in Add() 368 sym.st_size = size; in Add() 369 sym.st_other = 0; in Add() 370 sym.st_info = (binding << 4) + (type & 0xf); in Add() 371 Add(sym, section); in Add() 375 void Add(Elf_Sym sym, const Section* section) { in Add() argument 377 DCHECK_LE(section->GetAddress(), sym.st_value); in Add() 378 DCHECK_LE(sym.st_value, section->GetAddress() + section->header_.sh_size); in Add() [all …]
|
/art/sigchainlib/ |
D | sigchain.cc | 129 void* sym = dlsym(libc, name); // NOLINT glibc triggers cert-dcl16-c with RTLD_NEXT. in lookup_libc_symbol() local 130 if (sym == nullptr) { in lookup_libc_symbol() 131 sym = dlsym(RTLD_DEFAULT, name); in lookup_libc_symbol() 132 if (sym == wrapper || sym == sigaction) { in lookup_libc_symbol() 136 *output = reinterpret_cast<T>(sym); in lookup_libc_symbol()
|
/art/test/ti-agent/ |
D | jni_binder.cc | 108 void* sym = dlsym(RTLD_DEFAULT, mangled_name.c_str()); in BindMethod() local 109 if (sym == nullptr) { in BindMethod() 114 native_method.fnPtr = sym; in BindMethod()
|
/art/runtime/jni/ |
D | java_vm_ext.cc | 367 void* const sym = library->FindSymbol("JNI_OnUnload", nullptr); in UnloadLibraries() local 368 if (sym == nullptr) { in UnloadLibraries() 372 JNI_OnUnloadFn jni_on_unload = reinterpret_cast<JNI_OnUnloadFn>(sym); in UnloadLibraries() 1067 void* sym = library->FindSymbol("JNI_OnLoad", nullptr); in LoadNativeLibrary() local 1068 if (sym == nullptr) { in LoadNativeLibrary() 1081 JNI_OnLoadFn jni_on_load = reinterpret_cast<JNI_OnLoadFn>(sym); in LoadNativeLibrary()
|
/art/runtime/jit/ |
D | debugger_interface.cc | 662 reader.VisitFunctionSymbols([&](ElfRuntimeTypes::Sym sym, const char* name) { in ForEachNativeDebugSymbol() argument 663 cb(reinterpret_cast<const void*>(sym.st_value), sym.st_size, name); in ForEachNativeDebugSymbol()
|
/art/tools/ |
D | dex2oat_wrapper | 22 # Follow all sym links to get the program name.
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 474 void* sym = dlsym(handle, name); in native_bridge_getTrampoline() local 478 method->fnPtr = sym; in native_bridge_getTrampoline()
|
/art/test/ti-stress/ |
D | stress.cc | 486 #define SEND_VALUE(chr, sym, type) \ in PrintJValue() argument 488 oss << static_cast<type>(new_value.sym); \ in PrintJValue()
|
/art/runtime/ |
D | elf_file.cc | 756 const Elf_Sym* sym = FindDynamicSymbol(symbol_name); in FindDynamicSymbolAddress() local 757 if (sym != nullptr) { in FindDynamicSymbolAddress() 760 return base_address_ + sym->st_value; in FindDynamicSymbolAddress()
|