Home
last modified time | relevance | path

Searched refs:secstrings (Results 1 – 25 of 31) sorted by relevance

12

/linux/arch/x86/kernel/
H A Dmodule.c249 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
252 if (!strcmp(".altinstructions", secstrings + s->sh_name)) in module_finalize()
254 if (!strcmp(".smp_locks", secstrings + s->sh_name)) in module_finalize()
256 if (!strcmp(".orc_unwind", secstrings + s->sh_name)) in module_finalize()
258 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name)) in module_finalize()
260 if (!strcmp(".retpoline_sites", secstrings + s->sh_name)) in module_finalize()
262 if (!strcmp(".return_sites", secstrings + s->sh_name)) in module_finalize()
264 if (!strcmp(".call_sites", secstrings + s->sh_name)) in module_finalize()
266 if (!strcmp(".cfi_sites", secstrings + s->sh_name)) in module_finalize()
268 if (!strcmp(".ibt_endbr_seal", secstrings + s->sh_name)) in module_finalize()
/linux/arch/hexagon/kernel/
H A Dmodule.c28 char *secstrings, in module_frob_arch_sections() argument
37 secstrings + sechdrs[i].sh_name); in module_frob_arch_sections()
38 if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections()
40 if (strcmp(secstrings + sechdrs[i].sh_name, ".got.plt") == 0) in module_frob_arch_sections()
42 if (strcmp(secstrings + sechdrs[i].sh_name, ".rela.plt") == 0) in module_frob_arch_sections()
/linux/kernel/module/
H A Dlivepatch.c42 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf()
43 if (!mod->klp_info->secstrings) { in copy_module_elf()
72 kfree(mod->klp_info->secstrings); in free_module_elf()
H A Dstrict_rwx.c91 const char *secstrings, in module_enforce_rwx_sections() argument
103 mod->name, secstrings + sechdrs[i].sh_name, i); in module_enforce_rwx_sections()
136 const char *secstrings) in module_mark_ro_after_init() argument
144 if (strcmp(secstrings + shdr->sh_name, in module_mark_ro_after_init()
H A Dinternal.h71 char *secstrings, *strtab; member
336 const char *secstrings,
339 const char *secstrings);
H A Dmain.c244 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
267 if (strcmp(info->secstrings + info->sechdrs[i].sh_name, in find_any_unique_sec()
309 if (strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_any_sec()
1616 info->secstrings, in apply_relocations()
1698 const char *sname = info->secstrings + s->sh_name; in __layout_sections()
1972 char *secstrings; in elf_validity_cache_secstrings() local
1993 secstrings = (void *)info->hdr + strhdr->sh_offset; in elf_validity_cache_secstrings()
1998 if (secstrings[strhdr->sh_size - 1] != '\0') { in elf_validity_cache_secstrings()
2015 info->secstrings = secstrings; in elf_validity_cache_secstrings()
2760 sname = info->secstrings + shdr->sh_name; in move_module()
[all …]
H A Dkallsyms.c71 if (strstarts(info->secstrings + sechdrs[sym->st_shndx].sh_name, in elf_type()
126 pr_debug("\t%s\n", info->secstrings + symsect->sh_name); in layout_symtab()
153 pr_debug("\t%s\n", info->secstrings + strsect->sh_name); in layout_symtab()
/linux/arch/powerpc/kernel/
H A Dmodule_32.c75 const char *secstrings, in get_plt_size() argument
86 if ((strstr(secstrings + sechdrs[i].sh_name, ".init") != NULL) in get_plt_size()
91 if (strstr(secstrings + sechdrs[i].sh_name, ".debug")) in get_plt_size()
122 char *secstrings, in module_frob_arch_sections() argument
129 if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0) in module_frob_arch_sections()
131 else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections()
141 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections()
143 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections()
H A Dmodule.c23 char *secstrings; in find_section() local
26 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
28 if (strcmp(secstrings+sechdrs[i].sh_name, name) == 0) in find_section()
H A Dmodule_64.c209 char *secstrings, in get_stubs_size() argument
251 if (!strcmp(secstrings + sechdrs[i].sh_name, "__patchable_function_entries")) { in get_stubs_size()
432 char *secstrings, in module_frob_arch_sections() argument
439 if (strcmp(secstrings + sechdrs[i].sh_name, ".stubs") == 0) in module_frob_arch_sections()
442 else if (strcmp(secstrings + sechdrs[i].sh_name, ".data..percpu") == 0) in module_frob_arch_sections()
444 else if (strcmp(secstrings + sechdrs[i].sh_name, ".mygot") == 0) { in module_frob_arch_sections()
450 else if (strcmp(secstrings + sechdrs[i].sh_name, ".toc") == 0) { in module_frob_arch_sections()
454 } else if (strcmp(secstrings + sechdrs[i].sh_name, "__versions") == 0) in module_frob_arch_sections()
457 else if (strcmp(secstrings + sechdrs[i].sh_name, "__version_ext_names") == 0) in module_frob_arch_sections()
492 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs, secstrings, me); in module_frob_arch_sections()
/linux/arch/loongarch/kernel/
H A Dmodule-sections.c106 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
115 if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
117 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
119 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt.idx")) in module_frob_arch_sections()
121 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".ftrace_trampoline")) in module_frob_arch_sections()
/linux/arch/sparc/kernel/
H A Dmodule.c27 char *secstrings, in module_frob_arch_sections() argument
157 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections() local
160 if (!strcmp(".sun4v_1insn_patch", secstrings + s->sh_name)) in do_patch_sections()
162 if (!strcmp(".sun4v_2insn_patch", secstrings + s->sh_name)) in do_patch_sections()
/linux/kernel/
H A Dcfi.c68 char *secstrings; in module_cfi_finalize() local
74 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_cfi_finalize()
77 if (strcmp(secstrings + sechdrs[i].sh_name, "__kcfi_traps")) in module_cfi_finalize()
/linux/scripts/
H A Dtracepoint-update.c159 const char *secstrings; in process_tracepoints() local
173 secstrings = (const char *)ehdr + shdr_offset(string_sec); in process_tracepoints()
185 if (!strcmp(secstrings + idx, "__tracepoint_check")) { in process_tracepoints()
191 if (!strcmp(secstrings + idx, "__tracepoints_strings")) { in process_tracepoints()
H A Dsorttable.c608 const char *secstrings; in do_sort() local
634 secstrings = (const char *)ehdr + shdr_offset(string_sec); in do_sort()
644 if (!strcmp(secstrings + idx, "__ex_table")) in do_sort()
646 if (!strcmp(secstrings + idx, ".symtab")) in do_sort()
648 if (!strcmp(secstrings + idx, ".strtab")) in do_sort()
657 if (!strcmp(secstrings + idx, ".init.data")) in do_sort()
663 if (!strcmp(secstrings + idx, ".orc_unwind_ip")) { in do_sort()
668 if (!strcmp(secstrings + idx, ".orc_unwind")) { in do_sort()
/linux/arch/arm64/kernel/
H A Dmodule-plts.c281 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
294 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
296 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt")) in module_frob_arch_sections()
298 else if (!strcmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
301 else if (!strcmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
338 if (!module_init_layout_section(secstrings + dstsec->sh_name)) in module_frob_arch_sections()
/linux/arch/x86/tools/
H A Dvdso2c.h55 const char *secstrings; in go() local
105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in go()
112 if (!strcmp(secstrings + GET_LE(&sh->sh_name), in go()
115 if (!strcmp(secstrings + GET_LE(&sh->sh_name), "__ex_table")) in go()
/linux/arch/riscv/kernel/
H A Dmodule-sections.c116 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
130 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
132 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
134 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got.plt")) in module_frob_arch_sections()
/linux/arch/mips/kernel/
H A Dvpe.c184 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections() argument
480 const char *secstrings, in simplify_symbols() argument
490 if (strncmp(secstrings + sechdrs[i].sh_name, ".bss", 4) == 0) { in simplify_symbols()
581 char *secstrings, *strtab = NULL; in vpe_elfload() local
613 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in vpe_elfload()
641 layout_sections(&mod, hdr, sechdrs, secstrings); in vpe_elfload()
666 secstrings + sechdrs[i].sh_name, in vpe_elfload()
671 simplify_symbols(sechdrs, symindex, strtab, secstrings, in vpe_elfload()
/linux/arch/arm/kernel/
H A Dmodule-plts.c210 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
222 if (strcmp(".plt", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
224 else if (strcmp(".init.plt", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
254 if (!module_init_layout_section(secstrings + dstsec->sh_name)) in module_frob_arch_sections()
/linux/lib/
H A Dbug.c87 char *secstrings; in module_bug_finalize() local
94 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_bug_finalize()
96 if (strcmp(secstrings+sechdrs[i].sh_name, "__bug_table")) in module_bug_finalize()
/linux/arch/s390/kernel/
H A Dmodule.c109 char *secstrings, struct module *me) in module_frob_arch_sections() argument
498 char *secstrings, *secname; in module_finalize() local
513 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
516 secname = secstrings + s->sh_name; in module_finalize()
/linux/arch/parisc/kernel/
H A Dmodule.c269 CONST char *secstrings, in module_frob_arch_sections() argument
286 if (strncmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
835 char *secstrings; in module_finalize() local
911 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
914 char *secname = secstrings + s->sh_name; in module_finalize()
/linux/arch/alpha/kernel/
H A Dmodule.c65 char *secstrings, struct module *me) in module_frob_arch_sections() argument
81 else if (!strcmp(".got", secstrings + s->sh_name)) { in module_frob_arch_sections()
/linux/include/linux/
H A Dmoduleloader.h22 char *secstrings,

12