Lines Matching refs:src
77 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol() argument
82 if (src->st_shndx == SHN_UNDEF || in is_core_symbol()
83 src->st_shndx >= shnum || in is_core_symbol()
84 !src->st_name) in is_core_symbol()
88 if (src->st_shndx == pcpundx) in is_core_symbol()
92 sec = sechdrs + src->st_shndx; in is_core_symbol()
114 const Elf_Sym *src; in layout_symtab() local
123 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
124 nsrc = symsect->sh_size / sizeof(*src); in layout_symtab()
129 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
131 strtab_size += strlen(&info->strtab[src[i].st_name]) + 1; in layout_symtab()
169 const Elf_Sym *src; in add_kallsyms() local
196 src = rcu_dereference(mod->kallsyms)->symtab; in add_kallsyms()
198 rcu_dereference(mod->kallsyms)->typetab[i] = elf_type(src + i, info); in add_kallsyms()
200 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms()
206 dst[ndst] = src[i]; in add_kallsyms()
209 &rcu_dereference(mod->kallsyms)->strtab[src[i].st_name], in add_kallsyms()