Home
last modified time | relevance | path

Searched refs:strtab (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.1.9/arch/mips/kernel/
Dvpe.c426 const char *strtab, in apply_relocations() argument
450 me->name, strtab + sym->st_name); in apply_relocations()
461 strtab + sym->st_name); in apply_relocations()
479 const char *strtab, in simplify_symbols() argument
519 strtab + sym[i].st_name, sym[i].st_shndx); in simplify_symbols()
526 if (strncmp(strtab + sym[i].st_name, "_gp", 3) == 0) in simplify_symbols()
537 const char *strtab, struct module *mod) in dump_elfsymbols() argument
544 pr_debug(" i %d name <%s> 0x%x\n", i, strtab + sym[i].st_name, in dump_elfsymbols()
551 unsigned int symindex, const char *strtab, in find_vpe_symbols() argument
558 if (strcmp(strtab + sym[i].st_name, "__start") == 0) in find_vpe_symbols()
[all …]
Dmodule.c314 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate() argument
347 me->name, strtab + sym->st_name); in __apply_relocate()
387 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate() argument
391 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
395 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
399 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
/linux-6.1.9/include/linux/
Dmoduleloader.h48 const char *strtab,
54 const char *strtab, in apply_relocate() argument
71 const char *strtab,
77 const char *strtab, in apply_relocate_add() argument
Dlivepatch.h233 const char *shstrtab, const char *strtab,
247 const char *shstrtab, const char *strtab, in klp_apply_section_relocs() argument
/linux-6.1.9/arch/parisc/kernel/
Dmodule.c64 me->name, strtab + sym->st_name, (unsigned long)val, bits); \
519 const char *strtab, in apply_relocate_add() argument
549 me->name, strtab + sym->st_name); in apply_relocate_add()
561 strtab + sym->st_name, in apply_relocate_add()
664 const char *strtab, in apply_relocate_add() argument
693 me->name, strtab + sym->st_name); in apply_relocate_add()
706 strtab + sym->st_name, in apply_relocate_add()
723 strtab + sym->st_name, in apply_relocate_add()
734 strtab + sym->st_name, in apply_relocate_add()
741 strtab + sym->st_name, in apply_relocate_add()
[all …]
/linux-6.1.9/drivers/remoteproc/
Dremoteproc_elf_helpers.h104 char *strtab; local
108 strtab = ehdr + elf_shdr_get_sh_offset(class, shdr);
110 if (!strtab || !name)
114 strcpy((strtab + idx), name);
/linux-6.1.9/arch/powerpc/kernel/
Dmodule_64.c239 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
245 char *name = strtab + syms[i].st_name; in dedotify()
256 const char *strtab, in find_dot_toc() argument
267 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
521 const char *strtab, in apply_relocate_add() argument
537 sym = find_dot_toc(sechdrs, strtab, symindex); in apply_relocate_add()
555 strtab + sym->st_name, (unsigned long)sym->st_value, in apply_relocate_add()
638 strtab + sym->st_name); in apply_relocate_add()
641 if (!restore_r2(strtab + sym->st_name, in apply_relocate_add()
/linux-6.1.9/arch/xtensa/kernel/
Dmodule.c48 const char *strtab, in apply_relocate_add() argument
91 strtab + sym->st_name); in apply_relocate_add()
115 strtab + sym->st_name); in apply_relocate_add()
/linux-6.1.9/arch/hexagon/kernel/
Dmodule.c67 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
98 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
111 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
/linux-6.1.9/scripts/dtc/libfdt/
Dfdt_sw.c252 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_add_string_() local
262 memcpy(strtab - offset, s, len); in fdt_add_string_()
278 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_find_add_string_() local
284 p = fdt_find_string_(strtab - strtabsize, strtabsize, s); in fdt_find_add_string_()
286 return p - strtab; in fdt_find_add_string_()
Dfdt_rw.c129 char *strtab = (char *)fdt + fdt_off_dt_strings(fdt); in fdt_find_add_string_() local
138 p = fdt_find_string_(strtab, fdt_size_dt_strings(fdt), s); in fdt_find_add_string_()
141 return (p - strtab); in fdt_find_add_string_()
143 new = strtab + fdt_size_dt_strings(fdt); in fdt_find_add_string_()
152 return (new - strtab); in fdt_find_add_string_()
Dfdt.c311 const char *fdt_find_string_(const char *strtab, int tabsize, const char *s) in fdt_find_string_() argument
314 const char *last = strtab + tabsize - len; in fdt_find_string_()
317 for (p = strtab; p <= last; p++) in fdt_find_string_()
/linux-6.1.9/arch/mips/vdso/
Dgenvdso.h64 char *strtab, *name; in FUNC() local
102 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
111 name = strtab + swap_uint32(sym->st_name); in FUNC()
/linux-6.1.9/arch/x86/tools/
Drelocs.c44 char *strtab; member
257 sec_strtab = secs[shstrndx].strtab; in sec_name()
290 char *strtab; in sym_lookup() local
299 strtab = sec->link->strtab; in sym_lookup()
304 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
479 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
480 if (!sec->strtab) { in read_strtabs()
488 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
612 sym_strtab = sec->link->strtab; in print_absolute_symbols()
657 sym_strtab = sec_symtab->link->strtab; in print_absolute_relocs()
[all …]
/linux-6.1.9/arch/sparc/kernel/
Dmodule.c62 char *strtab; in module_frob_arch_sections() local
72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
84 const char *strtab, in apply_relocate_add() argument
/linux-6.1.9/arch/x86/kernel/
Dmodule.c91 const char *strtab, in apply_relocate() argument
132 const char *strtab, in __apply_relocate_add() argument
223 const char *strtab, in apply_relocate_add() argument
237 ret = __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
/linux-6.1.9/arch/nios2/kernel/
Dmodule.c43 int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
68 rela[i].r_offset, strtab + sym->st_name); in apply_relocate_add()
/linux-6.1.9/kernel/module/
Dkallsyms.c131 strtab_size += strlen(&info->strtab[src[i].st_name]) + 1; in layout_symtab()
184 rcu_dereference(mod->kallsyms)->strtab = in add_kallsyms()
193 mod->core_kallsyms.strtab = s = mod->data_layout.base + info->stroffs; in add_kallsyms()
207 dst[ndst++].st_name = s - mod->core_kallsyms.strtab; in add_kallsyms()
209 &rcu_dereference(mod->kallsyms)->strtab[src[i].st_name], in add_kallsyms()
255 return kallsyms->strtab + kallsyms->symtab[symnum].st_name; in kallsyms_symbol_name()
/linux-6.1.9/kernel/livepatch/
Dcore.c193 static int klp_resolve_symbols(Elf_Shdr *sechdrs, const char *strtab, in klp_resolve_symbols() argument
224 strtab + sym->st_name); in klp_resolve_symbols()
229 cnt = sscanf(strtab + sym->st_name, in klp_resolve_symbols()
234 strtab + sym->st_name); in klp_resolve_symbols()
288 const char *shstrtab, const char *strtab, in klp_apply_section_relocs() argument
312 ret = klp_resolve_symbols(sechdrs, strtab, symndx, sec, sec_objname); in klp_apply_section_relocs()
316 return apply_relocate_add(sechdrs, strtab, symndx, secndx, pmod); in klp_apply_section_relocs()
779 patch->mod->core_kallsyms.strtab, in klp_apply_object_relocs()
/linux-6.1.9/arch/m68k/kernel/
Dmodule.c23 const char *strtab, in apply_relocate() argument
63 const char *strtab, in apply_relocate_add() argument
/linux-6.1.9/arch/arc/kernel/
Dmodule.c46 const char *strtab, in apply_relocate_add() argument
88 s = strtab + sym_entry->st_name; in apply_relocate_add()
/linux-6.1.9/arch/s390/kernel/
Dmodule.c236 const char *strtab, struct module *me, in apply_rela() argument
432 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
439 static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate_add() argument
458 rc = apply_rela(rela, base, symtab, strtab, me, write); in __apply_relocate_add()
465 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
475 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_rtsym.c43 char *strtab; member
58 sw->name = cache->strtab + le16_to_cpu(fw->name) % strtab_size; in nfp_rtsym_sw_entry_init()
130 cache->strtab = (void *)&cache->symtab[cache->num]; in __nfp_rtsym_table_read()
136 err = nfp_cpp_read(cpp, dram, strtab_addr, cache->strtab, strtab_size); in __nfp_rtsym_table_read()
139 cache->strtab[strtab_size] = '\0'; in __nfp_rtsym_table_read()
/linux-6.1.9/arch/mips/boot/tools/
Drelocs.c29 char *strtab; member
96 sec_strtab = secs[ehdr.e_shstrndx].strtab; in sec_name()
304 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
305 if (!sec->strtab) in read_strtabs()
313 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != in read_strtabs()
489 sym_strtab = sec_symtab->link->strtab; in walk_relocs()
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c1381 static void arm_smmu_init_bypass_stes(__le64 *strtab, unsigned int nent, bool force) in arm_smmu_init_bypass_stes() argument
1392 strtab[0] = cpu_to_le64(val); in arm_smmu_init_bypass_stes()
1393 strtab[1] = cpu_to_le64(FIELD_PREP(STRTAB_STE_1_SHCFG, in arm_smmu_init_bypass_stes()
1395 strtab[2] = 0; in arm_smmu_init_bypass_stes()
1396 strtab += STRTAB_STE_DWORDS; in arm_smmu_init_bypass_stes()
1403 void *strtab; in arm_smmu_init_l2_strtab() local
1411 strtab = &cfg->strtab[(sid >> STRTAB_SPLIT) * STRTAB_L1_DESC_DWORDS]; in arm_smmu_init_l2_strtab()
1424 arm_smmu_write_strtab_l1_desc(strtab, desc); in arm_smmu_init_l2_strtab()
2251 step = &cfg->strtab[sid * STRTAB_STE_DWORDS]; in arm_smmu_get_step_for_sid()
2972 void *strtab = smmu->strtab_cfg.strtab; in arm_smmu_init_l1_strtab() local
[all …]

123