/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 | 209 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char*) { in MakeElfFileForJIT() argument 210 DCHECK_EQ(sym.st_value, in MakeElfFileForJIT() 212 DCHECK_EQ(sym.st_size, method_info.code_size); in MakeElfFileForJIT() 274 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char* name) { in PackElfFileForJIT() argument 275 if (is_removed_symbol(sym.st_value)) { in PackElfFileForJIT() 278 sym.st_name = strtab->Write(name); in PackElfFileForJIT() 279 symbols.push_back(sym); in PackElfFileForJIT() 280 min_address = std::min<uint64_t>(min_address, sym.st_value); in PackElfFileForJIT() 281 max_address = std::max<uint64_t>(max_address, sym.st_value + sym.st_size); in PackElfFileForJIT()
|
/art/libelffile/elf/ |
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 | 156 void* sym = dlsym(libc, name); // NOLINT glibc triggers cert-dcl16-c with RTLD_NEXT. in lookup_libc_symbol() local 157 if (sym == nullptr) { in lookup_libc_symbol() 158 sym = dlsym(RTLD_DEFAULT, name); in lookup_libc_symbol() 159 if (sym == wrapper || sym == sigaction) { in lookup_libc_symbol() 163 *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/tools/ |
D | check_cfi.py | 170 sym = sym_re.match(section) 171 if sym: 172 results.append(Asm(int(sym[1], 16), sym[2], section))
|
/art/runtime/jni/ |
D | java_vm_ext.cc | 382 void* const sym = library->FindSymbol("JNI_OnUnload", nullptr, android::kJNICallTypeRegular); in UnloadLibraries() local 383 if (sym == nullptr) { in UnloadLibraries() 387 JNI_OnUnloadFn jni_on_unload = reinterpret_cast<JNI_OnUnloadFn>(sym); in UnloadLibraries() 1102 void* sym = library->FindSymbol("JNI_OnLoad", nullptr, android::kJNICallTypeRegular); in LoadNativeLibrary() local 1103 if (sym == nullptr) { in LoadNativeLibrary() 1116 JNI_OnLoadFn jni_on_load = reinterpret_cast<JNI_OnLoadFn>(sym); in LoadNativeLibrary()
|
/art/runtime/jit/ |
D | debugger_interface.cc | 675 reader.VisitFunctionSymbols([&](ElfRuntimeTypes::Sym sym, const char* name) { in ForEachNativeDebugSymbol() argument 676 cb(reinterpret_cast<const void*>(sym.st_value), sym.st_size, name); in ForEachNativeDebugSymbol()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 481 void* sym = dlsym(handle, name); in native_bridge_getTrampoline() local 485 method->fnPtr = sym; in native_bridge_getTrampoline()
|
/art/test/ti-stress/ |
D | stress.cc | 485 #define SEND_VALUE(chr, sym, type) \ in PrintJValue() argument 487 oss << static_cast<type>(new_value.sym); \ in PrintJValue()
|
/art/runtime/oat/ |
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()
|