Lines Matching defs:sym
85 void insert(const Symbol& sym) {
86 VIXL_ASSERT(find(sym.GetAddress()) == end());
88 std::make_pair(sym.GetMemoryAddress(), sym));
135 const Elf32_Sym* sym = reinterpret_cast<const Elf32_Sym*>(
138 if ((sym[snum].st_shndx > 0) && (sym[snum].st_shndx < ehdr->e_shnum) &&
139 (sym[snum].st_value != 0) &&
140 (shdr[sym[snum].st_shndx].sh_type == SHT_PROGBITS) &&
141 ((ELF32_ST_BIND(sym[snum].st_info) == STB_LOCAL) ||
142 (ELF32_ST_BIND(sym[snum].st_info) == STB_GLOBAL)) &&
143 (ELF32_ST_TYPE(sym[snum].st_info) == STT_FUNC)) {
144 visitor->visit(symnames + sym[snum].st_name, sym[snum]);
156 void visit(const char* symname, const Elf32_Sym& sym) {
158 Symbol(symname, sym.st_value, 0, sym.st_size, sym.st_shndx));
174 void visit(const char* symname, const Elf32_Sym& sym) {
177 sym.st_value,
178 shdr_[sym.st_shndx].sh_offset,
179 sym.st_size,
180 sym.st_shndx));
184 sym.st_value,
185 shdr_[sym.st_shndx].sh_offset - shdr_[sym.st_shndx].sh_addr,
186 sym.st_size,
187 sym.st_shndx));