Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 11 of 11) 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.cc209 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/
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.cc156 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/
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/tools/
Dcheck_cfi.py170 sym = sym_re.match(section)
171 if sym:
172 results.append(Asm(int(sym[1], 16), sym[2], section))
/art/runtime/jni/
Djava_vm_ext.cc382 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/
Ddebugger_interface.cc675 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/
Dnativebridge.cc481 void* sym = dlsym(handle, name); in native_bridge_getTrampoline() local
485 method->fnPtr = sym; in native_bridge_getTrampoline()
/art/test/ti-stress/
Dstress.cc485 #define SEND_VALUE(chr, sym, type) \ in PrintJValue() argument
487 oss << static_cast<type>(new_value.sym); \ in PrintJValue()
/art/runtime/oat/
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()