Lines Matching refs:symname

354 static void sym_update_namespace(const char *symname, const char *namespace)  in sym_update_namespace()  argument
356 struct symbol *s = find_symbol(symname); in sym_update_namespace()
364 namespace, symname); in sym_update_namespace()
588 static int ignore_undef_symbol(struct elf_info *info, const char *symname) in ignore_undef_symbol() argument
591 if (strcmp(symname, "__this_module") == 0) in ignore_undef_symbol()
594 if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0) in ignore_undef_symbol()
598 if (strstarts(symname, "_restgpr_") || in ignore_undef_symbol()
599 strstarts(symname, "_savegpr_") || in ignore_undef_symbol()
600 strstarts(symname, "_rest32gpr_") || in ignore_undef_symbol()
601 strstarts(symname, "_save32gpr_") || in ignore_undef_symbol()
602 strstarts(symname, "_restvr_") || in ignore_undef_symbol()
603 strstarts(symname, "_savevr_")) in ignore_undef_symbol()
607 if (strstarts(symname, "_restgpr0_") || in ignore_undef_symbol()
608 strstarts(symname, "_savegpr0_") || in ignore_undef_symbol()
609 strstarts(symname, "_restvr_") || in ignore_undef_symbol()
610 strstarts(symname, "_savevr_") || in ignore_undef_symbol()
611 strcmp(symname, ".TOC.") == 0) in ignore_undef_symbol()
616 if (strstarts(symname, "__s390_indirect_jump_r")) in ignore_undef_symbol()
623 const Elf_Sym *sym, const char *symname) in handle_symbol() argument
627 if (strstarts(symname, "__gnu_lto_")) { in handle_symbol()
630 warn("\"%s\" [%s] is COMMON symbol\n", symname, mod->name); in handle_symbol()
637 if (ignore_undef_symbol(info, symname)) in handle_symbol()
644 if (symname[0] == '.') { in handle_symbol()
645 char *munged = NOFAIL(strdup(symname)); in handle_symbol()
648 symname = munged; in handle_symbol()
652 sym_add_unresolved(symname, mod, in handle_symbol()
657 if (strstarts(symname, "__ksymtab_")) { in handle_symbol()
660 name = symname + strlen("__ksymtab_"); in handle_symbol()
668 if (strcmp(symname, "init_module") == 0) in handle_symbol()
670 if (strcmp(symname, "cleanup_module") == 0) in handle_symbol()
1777 const char *symname; in read_symbols() local
1817 symname = remove_dot(info.strtab + sym->st_name); in read_symbols()
1819 handle_symbol(mod, &info, sym, symname); in read_symbols()
1820 handle_moddevtable(mod, &info, sym, symname); in read_symbols()
1824 symname = remove_dot(info.strtab + sym->st_name); in read_symbols()
1827 if (strstarts(symname, "__kstrtabns_")) in read_symbols()
1828 sym_update_namespace(symname + strlen("__kstrtabns_"), in read_symbols()
2224 char *symname, *namespace, *modname, *d, *export; in read_dump() local
2230 if (!(symname = strchr(line, '\t'))) in read_dump()
2232 *symname++ = '\0'; in read_dump()
2233 if (!(modname = strchr(symname, '\t'))) in read_dump()
2244 if (*symname == '\0' || *modname == '\0' || *d != '\0') in read_dump()
2252 error("%s: unknown license %s. skip", symname, export); in read_dump()
2261 s = sym_add_exported(symname, mod, gpl_only); in read_dump()
2263 sym_update_namespace(symname, namespace); in read_dump()