Lines Matching refs:sym

108 	uint8_t (*sym_type)(Elf_Sym *sym);
109 uint32_t (*sym_name)(Elf_Sym *sym);
110 uint64_t (*sym_value)(Elf_Sym *sym);
111 uint16_t (*sym_shndx)(Elf_Sym *sym);
210 static uint64_t sym64_##fn_name(Elf_Sym *sym) \
212 return r8(&sym->e64.st_##fn_name); \
215 static uint64_t sym32_##fn_name(Elf_Sym *sym) \
217 return r(&sym->e32.st_##fn_name); \
220 static uint64_t sym_##fn_name(Elf_Sym *sym) \
222 return e.sym_##fn_name(sym); \
226 static uint32_t sym64_##fn_name(Elf_Sym *sym) \
228 return r(&sym->e64.st_##fn_name); \
231 static uint32_t sym32_##fn_name(Elf_Sym *sym) \
233 return r(&sym->e32.st_##fn_name); \
236 static uint32_t sym_##fn_name(Elf_Sym *sym) \
238 return e.sym_##fn_name(sym); \
242 static uint16_t sym64_##fn_name(Elf_Sym *sym) \
244 return r2(&sym->e64.st_##fn_name); \
247 static uint16_t sym32_##fn_name(Elf_Sym *sym) \
249 return r2(&sym->e32.st_##fn_name); \
252 static uint16_t sym_##fn_name(Elf_Sym *sym) \
254 return e.sym_##fn_name(sym); \
257 static uint8_t sym64_type(Elf_Sym *sym)
259 return ELF64_ST_TYPE(sym->e64.st_info);
262 static uint8_t sym32_type(Elf_Sym *sym) in sym32_type() argument
264 return ELF32_ST_TYPE(sym->e32.st_info); in sym32_type()
267 static uint8_t sym_type(Elf_Sym *sym) in sym_type() argument
269 return e.sym_type(sym); in sym_type()
889 Elf_Sym *sym, *end_sym; in get_mcount_loc() local
893 sym = (void *)emloc->ehdr + shdr_offset(symtab_sec); in get_mcount_loc()
894 end_sym = (void *)sym + shdr_size(symtab_sec); in get_mcount_loc()
896 while (sym < end_sym) { in get_mcount_loc()
897 if (!strcmp(strtab + sym_name(sym), "__start_mcount_loc")) { in get_mcount_loc()
898 emloc->start_mcount_loc = sym_value(sym); in get_mcount_loc()
901 } else if (!strcmp(strtab + sym_name(sym), "__stop_mcount_loc")) { in get_mcount_loc()
902 emloc->stop_mcount_loc = sym_value(sym); in get_mcount_loc()
906 sym = (void *)sym + symentsize; in get_mcount_loc()
933 Elf_Sym *sym; in do_sort() local
1087 for (sym = sym_start; (void *)sym + symentsize < sym_end; in do_sort()
1088 sym = (void *)sym + symentsize) { in do_sort()
1089 if (sym_type(sym) != STT_OBJECT) in do_sort()
1091 if (!strcmp(strtab + sym_name(sym), in do_sort()
1093 sort_needed_sym = sym; in do_sort()
1105 sort_need_index = get_secindex(sym_shndx(sym), in do_sort()