Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 12 of 12) sorted by relevance

/art/tools/create_minidebuginfo/
Dcreate_minidebuginfo.cc68 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/
Delf_debug_writer.cc210 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/
Delf_utils.h83 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()
Delf_builder.h365 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/
Dsigchain.cc129 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/
Djni_binder.cc108 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/
Djava_vm_ext.cc367 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/
Ddebugger_interface.cc662 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/
Ddex2oat_wrapper22 # Follow all sym links to get the program name.
/art/test/115-native-bridge/
Dnativebridge.cc474 void* sym = dlsym(handle, name); in native_bridge_getTrampoline() local
478 method->fnPtr = sym; in native_bridge_getTrampoline()
/art/test/ti-stress/
Dstress.cc486 #define SEND_VALUE(chr, sym, type) \ in PrintJValue() argument
488 oss << static_cast<type>(new_value.sym); \ in PrintJValue()
/art/runtime/
Delf_file.cc756 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()