Lines Matching refs:src
2658 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol() argument
2663 if (src->st_shndx == SHN_UNDEF in is_core_symbol()
2664 || src->st_shndx >= shnum in is_core_symbol()
2665 || !src->st_name) in is_core_symbol()
2669 if (src->st_shndx == pcpundx) in is_core_symbol()
2673 sec = sechdrs + src->st_shndx; in is_core_symbol()
2695 const Elf_Sym *src; in layout_symtab() local
2704 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
2705 nsrc = symsect->sh_size / sizeof(*src); in layout_symtab()
2710 is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
2712 strtab_size += strlen(&info->strtab[src[i].st_name])+1; in layout_symtab()
2749 const Elf_Sym *src; in add_kallsyms() local
2770 src = mod->kallsyms->symtab; in add_kallsyms()
2772 mod->kallsyms->typetab[i] = elf_type(src + i, info); in add_kallsyms()
2774 is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms()
2778 dst[ndst] = src[i]; in add_kallsyms()
2780 s += strlcpy(s, &mod->kallsyms->strtab[src[i].st_name], in add_kallsyms()