• Home
  • Raw
  • Download

Lines Matching refs:sym

263 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym)  in sym_name()  argument
267 if (sym->st_name) { in sym_name()
268 name = sym_strtab + sym->st_name; in sym_name()
271 name = sec_name(sym->st_shndx); in sym_name()
284 Elf_Sym *sym; in sym_lookup() local
293 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
294 if (!sym->st_name) in sym_lookup()
296 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
297 return sym; in sym_lookup()
494 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local
495 sym->st_name = elf_word_to_cpu(sym->st_name); in read_symtabs()
496 sym->st_value = elf_addr_to_cpu(sym->st_value); in read_symtabs()
497 sym->st_size = elf_xword_to_cpu(sym->st_size); in read_symtabs()
498 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs()
560 Elf_Sym *sym; in print_absolute_symbols() local
562 sym = &sec->symtab[j]; in print_absolute_symbols()
563 name = sym_name(sym_strtab, sym); in print_absolute_symbols()
564 if (sym->st_shndx != SHN_ABS) { in print_absolute_symbols()
568 j, sym->st_value, sym->st_size, in print_absolute_symbols()
569 sym_type(ELF_ST_TYPE(sym->st_info)), in print_absolute_symbols()
570 sym_bind(ELF_ST_BIND(sym->st_info)), in print_absolute_symbols()
571 sym_visibility(ELF_ST_VISIBILITY(sym->st_other)), in print_absolute_symbols()
606 Elf_Sym *sym; in print_absolute_relocs() local
609 sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in print_absolute_relocs()
610 name = sym_name(sym_strtab, sym); in print_absolute_relocs()
611 if (sym->st_shndx != SHN_ABS) { in print_absolute_relocs()
643 sym->st_value, in print_absolute_relocs()
668 Elf_Sym *sym, const char *symname)) in walk_relocs() argument
691 Elf_Sym *sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in walk_relocs() local
692 const char *symname = sym_name(sym_strtab, sym); in walk_relocs()
694 process(sec, rel, sym, symname); in walk_relocs()
729 ElfW(Sym) *sym; in percpu_init()
736 sym = sym_lookup("__per_cpu_load"); in percpu_init()
737 if (!sym) in percpu_init()
741 per_cpu_load_addr = sym->st_value; in percpu_init()
763 static int is_percpu_sym(ElfW(Sym) *sym, const char *symname) in is_percpu_sym() argument
765 return (sym->st_shndx == per_cpu_shndx) && in is_percpu_sym()
772 static int do_reloc64(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, in do_reloc64() argument
777 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64()
779 if (sym->st_shndx == SHN_UNDEF) in do_reloc64()
801 if (is_percpu_sym(sym, symname)) in do_reloc64()
809 if (is_percpu_sym(sym, symname)) in do_reloc64()
820 if (is_percpu_sym(sym, symname)) in do_reloc64()
862 static int do_reloc32(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, in do_reloc32() argument
866 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32()
907 static int do_reloc_real(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, in do_reloc_real() argument
911 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc_real()
1011 int (*do_reloc)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, in emit_relocs()
1091 static int do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, in do_reloc_info() argument
1098 sec_name(sym->st_shndx)); in do_reloc_info()