Home
last modified time | relevance | path

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

12

/linux-6.12.1/arch/x86/kernel/
Dmodule.c231 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
234 if (!strcmp(".altinstructions", secstrings + s->sh_name)) in module_finalize()
236 if (!strcmp(".smp_locks", secstrings + s->sh_name)) in module_finalize()
238 if (!strcmp(".orc_unwind", secstrings + s->sh_name)) in module_finalize()
240 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name)) in module_finalize()
242 if (!strcmp(".retpoline_sites", secstrings + s->sh_name)) in module_finalize()
244 if (!strcmp(".return_sites", secstrings + s->sh_name)) in module_finalize()
246 if (!strcmp(".call_sites", secstrings + s->sh_name)) in module_finalize()
248 if (!strcmp(".cfi_sites", secstrings + s->sh_name)) in module_finalize()
250 if (!strcmp(".ibt_endbr_seal", secstrings + s->sh_name)) in module_finalize()
/linux-6.12.1/arch/hexagon/kernel/
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-6.12.1/kernel/module/
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()
Dstrict_rwx.c82 char *secstrings, struct module *mod) in module_enforce_rwx_sections() argument
93 mod->name, secstrings + sechdrs[i].sh_name, i); in module_enforce_rwx_sections()
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()
Dinternal.h68 char *secstrings, *strtab; member
329 char *secstrings, struct module *mod);
Dmain.c192 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
225 if (strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_any_sec()
1482 info->secstrings, in apply_relocations()
1565 const char *sname = info->secstrings + s->sh_name; in __layout_sections()
1762 info->secstrings = (void *)info->hdr + strhdr->sh_offset; in elf_validity_cache_copy()
1767 if (info->secstrings[strhdr->sh_size - 1] != '\0') { in elf_validity_cache_copy()
1808 if (strcmp(info->secstrings + shdr->sh_name, in elf_validity_cache_copy()
1812 } else if (strcmp(info->secstrings + shdr->sh_name, in elf_validity_cache_copy()
2298 (long)shdr->sh_size, info->secstrings + shdr->sh_name); in move_module()
2344 char *secstrings, in module_frob_arch_sections() argument
[all …]
/linux-6.12.1/arch/powerpc/kernel/
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()
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()
Dmodule_64.c405 char *secstrings, in module_frob_arch_sections() argument
412 if (strcmp(secstrings + sechdrs[i].sh_name, ".stubs") == 0) in module_frob_arch_sections()
415 else if (strcmp(secstrings + sechdrs[i].sh_name, ".data..percpu") == 0) in module_frob_arch_sections()
417 else if (strcmp(secstrings + sechdrs[i].sh_name, ".mygot") == 0) { in module_frob_arch_sections()
423 else if (strcmp(secstrings + sechdrs[i].sh_name, ".toc") == 0) { in module_frob_arch_sections()
428 else if (strcmp(secstrings+sechdrs[i].sh_name,"__versions")==0) in module_frob_arch_sections()
/linux-6.12.1/kernel/
Dcfi.c51 char *secstrings; in module_cfi_finalize() local
57 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_cfi_finalize()
60 if (strcmp(secstrings + sechdrs[i].sh_name, "__kcfi_traps")) in module_cfi_finalize()
/linux-6.12.1/scripts/
Dsorttable.h278 const char *secstrings; in do_sort() local
300 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort()
308 if (!strcmp(secstrings + idx, "__ex_table")) { in do_sort()
312 if (!strcmp(secstrings + idx, ".symtab")) in do_sort()
314 if (!strcmp(secstrings + idx, ".strtab")) in do_sort()
329 if (!strcmp(secstrings + idx, ".init.data")) { in do_sort()
340 if (!strcmp(secstrings + idx, ".orc_unwind_ip")) { in do_sort()
345 if (!strcmp(secstrings + idx, ".orc_unwind")) { in do_sort()
/linux-6.12.1/arch/loongarch/kernel/
Dmodule-sections.c105 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
114 if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
116 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
118 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt.idx")) in module_frob_arch_sections()
120 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".ftrace_trampoline")) in module_frob_arch_sections()
/linux-6.12.1/arch/sparc/kernel/
Dmodule.c27 char *secstrings, in module_frob_arch_sections() argument
158 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections() local
161 if (!strcmp(".sun4v_1insn_patch", secstrings + s->sh_name)) in do_patch_sections()
163 if (!strcmp(".sun4v_2insn_patch", secstrings + s->sh_name)) in do_patch_sections()
/linux-6.12.1/arch/riscv/kernel/
Dmodule-sections.c91 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
101 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
103 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
105 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got.plt")) in module_frob_arch_sections()
/linux-6.12.1/lib/
Dbug.c91 char *secstrings; in module_bug_finalize() local
98 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_bug_finalize()
100 if (strcmp(secstrings+sechdrs[i].sh_name, "__bug_table")) in module_bug_finalize()
/linux-6.12.1/arch/arm64/kernel/
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()
335 if (!module_init_layout_section(secstrings + dstsec->sh_name)) in module_frob_arch_sections()
/linux-6.12.1/arch/x86/entry/vdso/
Dvdso2c.h55 const char *secstrings; in BITSFUNC() local
105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC()
112 if (!strcmp(secstrings + GET_LE(&sh->sh_name), in BITSFUNC()
115 if (!strcmp(secstrings + GET_LE(&sh->sh_name), "__ex_table")) in BITSFUNC()
/linux-6.12.1/arch/mips/kernel/
Dvpe.c183 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections() argument
479 const char *secstrings, in simplify_symbols() argument
489 if (strncmp(secstrings + sechdrs[i].sh_name, ".bss", 4) == 0) { in simplify_symbols()
580 char *secstrings, *strtab = NULL; in vpe_elfload() local
612 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in vpe_elfload()
640 layout_sections(&mod, hdr, sechdrs, secstrings); in vpe_elfload()
665 secstrings + sechdrs[i].sh_name, in vpe_elfload()
670 simplify_symbols(sechdrs, symindex, strtab, secstrings, in vpe_elfload()
Dmodule.c419 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
426 if (strcmp("__dbe_table", secstrings + s->sh_name) != 0) in module_finalize()
/linux-6.12.1/arch/arm/kernel/
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-6.12.1/arch/s390/kernel/
Dmodule.c107 char *secstrings, struct module *me) in module_frob_arch_sections() argument
496 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-6.12.1/include/linux/
Dmoduleloader.h22 char *secstrings,
/linux-6.12.1/arch/parisc/kernel/
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-6.12.1/arch/alpha/kernel/
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()

12