Home
last modified time | relevance | path

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

123

/linux/arch/mips/kernel/
A 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()
537 const char *strtab, struct module *mod) in dump_elfsymbols() argument
581 char *secstrings, *strtab = NULL; in vpe_elfload() local
637 strtab = (char *)hdr + in vpe_elfload()
688 err = apply_relocations(sechdrs, strtab, in vpe_elfload()
691 err = apply_relocate_add(sechdrs, strtab, in vpe_elfload()
[all …]
A Dmodule.c313 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate() argument
346 me->name, strtab + sym->st_name); in __apply_relocate()
386 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate() argument
390 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
394 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() argument
398 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
/linux/arch/parisc/kernel/
A Dmodule.c519 const char *strtab, in apply_relocate_add() argument
561 strtab + sym->st_name, in apply_relocate_add()
664 const char *strtab, in apply_relocate_add() argument
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()
814 strtab + sym->st_name, in apply_relocate_add()
862 const char *strtab = NULL; in module_finalize() local
958 strtab, symindex, in module_finalize()
[all …]
/linux/include/linux/
A 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
A Dlivepatch.h235 const char *shstrtab, const char *strtab,
249 const char *shstrtab, const char *strtab, in klp_apply_section_relocs() argument
/linux/drivers/remoteproc/
A 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/arch/powerpc/kernel/
A Dmodule_64.c246 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
252 char *name = strtab + syms[i].st_name; in dedotify()
263 const char *strtab, in find_dot_toc() argument
274 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
527 const char *strtab, in apply_relocate_add() argument
543 sym = find_dot_toc(sechdrs, strtab, symindex); in apply_relocate_add()
561 strtab + sym->st_name, (unsigned long)sym->st_value, in apply_relocate_add()
644 strtab + sym->st_name); in apply_relocate_add()
647 if (!restore_r2(strtab + sym->st_name, in apply_relocate_add()
/linux/arch/xtensa/kernel/
A 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/arch/hexagon/kernel/
A 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/scripts/dtc/libfdt/
A 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_()
A 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_()
A 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/arch/x86/tools/
A Drelocs.c44 char *strtab; member
256 sec_strtab = secs[shstrndx].strtab; in sec_name()
289 char *strtab; in sym_lookup() local
298 strtab = sec->link->strtab; in sym_lookup()
303 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
478 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs()
479 if (!sec->strtab) { in read_strtabs()
487 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
611 sym_strtab = sec->link->strtab; in print_absolute_symbols()
656 sym_strtab = sec_symtab->link->strtab; in print_absolute_relocs()
[all …]
/linux/arch/mips/vdso/
A 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/arch/x86/kernel/
A Dmodule.c90 const char *strtab, in apply_relocate() argument
131 const char *strtab, in __apply_relocate_add() argument
222 const char *strtab, in apply_relocate_add() argument
236 ret = __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
/linux/arch/sparc/kernel/
A 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/kernel/livepatch/
A Dcore.c193 static int klp_resolve_symbols(Elf64_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()
761 patch->mod->core_kallsyms.strtab, in klp_apply_object_relocs()
/linux/arch/nios2/kernel/
A 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/arch/s390/kernel/
A Dmodule.c235 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/drivers/net/ethernet/netronome/nfp/nfpcore/
A 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/arch/mips/boot/tools/
A 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/arch/m68k/kernel/
A Dmodule.c23 const char *strtab, in apply_relocate() argument
63 const char *strtab, in apply_relocate_add() argument
/linux/arch/arc/kernel/
A Dmodule.c46 const char *strtab, in apply_relocate_add() argument
88 s = strtab + sym_entry->st_name; in apply_relocate_add()
/linux/tools/objtool/
A Delf.c709 static int elf_add_string(struct elf *elf, struct section *strtab, char *str) in elf_add_string() argument
715 if (!strtab) in elf_add_string()
716 strtab = find_section_by_name(elf, ".strtab"); in elf_add_string()
717 if (!strtab) { in elf_add_string()
722 s = elf_getscn(elf->elf, strtab->idx); in elf_add_string()
738 len = strtab->sh.sh_size; in elf_add_string()
739 strtab->sh.sh_size += data->d_size; in elf_add_string()
740 strtab->changed = true; in elf_add_string()
/linux/scripts/
A Dsorttable.h213 const char *strtab; in do_sort() local
313 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_sort()
335 if (!strcmp(strtab + r(&sym->st_name), in do_sort()

Completed in 60 milliseconds

123