Lines Matching refs:sym
139 if (const ElfW(Sym)* sym = lib->si_->find_symbol_by_name(elf_symbol_name, vi)) { in ElfW()
141 return sym; in ElfW()
174 const ElfW(Sym)* sym = nullptr; in ElfW()
177 sym = lib->symtab_ + sym_idx; in ElfW()
185 static_cast<size_t>(sym->st_name) + name_len + 1 <= lib->strtab_size_ && in ElfW()
186 memcmp(lib->strtab_ + sym->st_name, name, name_len + 1) == 0 && in ElfW()
187 is_symbol_global_and_defined(lib->si_, sym)) { in ElfW()
191 name, lib->si_->get_realpath(), reinterpret_cast<void*>(sym->st_value), in ElfW()
192 static_cast<size_t>(sym->st_size)); in ElfW()
194 return sym; in ElfW()
417 static bool symbol_matches_soaddr(const ElfW(Sym)* sym, ElfW(Addr) soaddr) { in symbol_matches_soaddr() argument
421 return sym->st_shndx != SHN_UNDEF && in symbol_matches_soaddr()
422 ELF_ST_TYPE(sym->st_info) != STT_TLS && in symbol_matches_soaddr()
423 soaddr >= sym->st_value && in symbol_matches_soaddr()
424 soaddr < sym->st_value + sym->st_size; in symbol_matches_soaddr()
438 ElfW(Sym)* sym = symtab_ + n; in ElfW()
439 if (symbol_matches_soaddr(sym, soaddr)) { in ElfW()
440 return sym; in ElfW()
454 ElfW(Sym)* sym = symtab_ + i; in ElfW()
455 if (symbol_matches_soaddr(sym, soaddr)) { in ElfW()
456 return sym; in ElfW()