Lines Matching refs:sym
158 static const char *sym_name(const char *sym_strtab, Elf32_Sym *sym) in sym_name() argument
162 if (sym->st_name) { in sym_name()
163 name = sym_strtab + sym->st_name; in sym_name()
166 name = sec_name(secs[sym->st_shndx].shdr.sh_name); in sym_name()
331 Elf32_Sym *sym = &sec->symtab[j]; in read_symtabs() local
332 sym->st_name = elf32_to_cpu(sym->st_name); in read_symtabs()
333 sym->st_value = elf32_to_cpu(sym->st_value); in read_symtabs()
334 sym->st_size = elf32_to_cpu(sym->st_size); in read_symtabs()
335 sym->st_shndx = elf16_to_cpu(sym->st_shndx); in read_symtabs()
389 Elf32_Sym *sym; in print_absolute_symbols() local
391 sym = &sec->symtab[j]; in print_absolute_symbols()
392 name = sym_name(sym_strtab, sym); in print_absolute_symbols()
393 if (sym->st_shndx != SHN_ABS) { in print_absolute_symbols()
397 j, sym->st_value, sym->st_size, in print_absolute_symbols()
398 sym_type(ELF32_ST_TYPE(sym->st_info)), in print_absolute_symbols()
399 sym_bind(ELF32_ST_BIND(sym->st_info)), in print_absolute_symbols()
400 sym_visibility(ELF32_ST_VISIBILITY(sym->st_other)), in print_absolute_symbols()
429 Elf32_Sym *sym; in print_absolute_relocs() local
432 sym = &sh_symtab[ELF32_R_SYM(rel->r_info)]; in print_absolute_relocs()
433 name = sym_name(sym_strtab, sym); in print_absolute_relocs()
434 if (sym->st_shndx != SHN_ABS) { in print_absolute_relocs()
466 sym->st_value, in print_absolute_relocs()
475 static void walk_relocs(void (*visit)(Elf32_Rel *rel, Elf32_Sym *sym)) in walk_relocs() argument
498 Elf32_Sym *sym; in walk_relocs() local
501 sym = &sh_symtab[ELF32_R_SYM(rel->r_info)]; in walk_relocs()
504 if (sym->st_shndx == SHN_ABS) { in walk_relocs()
512 visit(rel, sym); in walk_relocs()
521 static void count_reloc(Elf32_Rel *rel, Elf32_Sym *sym) in count_reloc() argument
526 static void collect_reloc(Elf32_Rel *rel, Elf32_Sym *sym) in collect_reloc() argument