Lines Matching refs:sym

37 static char elf_type(const Elf_Sym *sym, const struct load_info *info)  in elf_type()  argument
41 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) { in elf_type()
42 if (ELF_ST_TYPE(sym->st_info) == STT_OBJECT) in elf_type()
47 if (sym->st_shndx == SHN_UNDEF) in elf_type()
49 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type()
51 if (sym->st_shndx >= SHN_LORESERVE) in elf_type()
53 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
55 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type()
56 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type()
57 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type()
59 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
64 if (sechdrs[sym->st_shndx].sh_type == SHT_NOBITS) { in elf_type()
65 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
70 if (strstarts(info->secstrings + sechdrs[sym->st_shndx].sh_name, in elf_type()
112 Elf_Shdr *symsect = info->sechdrs + info->index.sym; in layout_symtab()
120 info->index.sym) | INIT_OFFSET_MASK; in layout_symtab()
172 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in add_kallsyms()
284 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol() local
285 unsigned long thisval = kallsyms_symbol_value(sym); in find_kallsyms_symbol()
287 if (sym->st_shndx == SHN_UNDEF) in find_kallsyms_symbol()
371 const char *sym; in lookup_module_symbol_name() local
373 sym = find_kallsyms_symbol(mod, addr, NULL, NULL); in lookup_module_symbol_name()
374 if (!sym) in lookup_module_symbol_name()
377 strscpy(symname, sym, KSYM_NAME_LEN); in lookup_module_symbol_name()
397 const char *sym; in lookup_module_symbol_attrs() local
399 sym = find_kallsyms_symbol(mod, addr, size, offset); in lookup_module_symbol_attrs()
400 if (!sym) in lookup_module_symbol_attrs()
405 strscpy(name, sym, KSYM_NAME_LEN); in lookup_module_symbol_attrs()
428 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym() local
430 *value = kallsyms_symbol_value(sym); in module_get_kallsym()
451 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol_value() local
454 sym->st_shndx != SHN_UNDEF) in find_kallsyms_symbol_value()
455 return kallsyms_symbol_value(sym); in find_kallsyms_symbol_value()
519 const Elf_Sym *sym = &kallsyms->symtab[i]; in module_kallsyms_on_each_symbol() local
521 if (sym->st_shndx == SHN_UNDEF) in module_kallsyms_on_each_symbol()
525 mod, kallsyms_symbol_value(sym)); in module_kallsyms_on_each_symbol()