Home
last modified time | relevance | path

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

12

/linux/arch/x86/kernel/
H A Dmodule.c246 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
249 if (!strcmp(".altinstructions", secstrings + s->sh_name)) in module_finalize()
251 if (!strcmp(".smp_locks", secstrings + s->sh_name)) in module_finalize()
253 if (!strcmp(".orc_unwind", secstrings + s->sh_name)) in module_finalize()
255 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name)) in module_finalize()
257 if (!strcmp(".retpoline_sites", secstrings + s->sh_name)) in module_finalize()
259 if (!strcmp(".return_sites", secstrings + s->sh_name)) in module_finalize()
261 if (!strcmp(".call_sites", secstrings + s->sh_name)) in module_finalize()
263 if (!strcmp(".cfi_sites", secstrings + s->sh_name)) in module_finalize()
265 if (!strcmp(".ibt_endbr_seal", secstrings in module_finalize()
[all...]
/linux/arch/hexagon/kernel/
H A Dmodule.c24 * @secstrings - symbol names
28 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()
1609 info->secstrings, in apply_relocations()
1691 const char *sname = info->secstrings + s->sh_name; in __layout_sections()
1958 * Then updates @info with a &load_info->secstrings pointer if valid.
1965 char *secstrings; in elf_validity_cache_secstrings() local
1986 secstrings = (void *)info->hdr + strhdr->sh_offset; in elf_validity_cache_secstrings()
1991 if (secstrings[strhdr->sh_size - 1] != '\0') { in elf_validity_cache_secstrings()
2008 info->secstrings in elf_validity_cache_secstrings()
2849 module_frob_arch_sections(Elf_Ehdr * hdr,Elf_Shdr * sechdrs,char * secstrings,struct module * mod) module_frob_arch_sections() argument
[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
252 if (!strcmp(secstrings + sechdrs[i].sh_name, "__patchable_function_entries")) { in get_stubs_size()
433 char *secstrings, in module_frob_arch_sections() argument
440 if (strcmp(secstrings + sechdrs[i].sh_name, ".stubs") == 0) in module_frob_arch_sections()
443 else if (strcmp(secstrings + sechdrs[i].sh_name, ".data..percpu") == 0) in module_frob_arch_sections()
445 else if (strcmp(secstrings + sechdrs[i].sh_name, ".mygot") == 0) { in module_frob_arch_sections()
451 else if (strcmp(secstrings + sechdrs[i].sh_name, ".toc") == 0) { in module_frob_arch_sections()
455 } else if (strcmp(secstrings + sechdrs[i].sh_name, "__versions") == 0) in module_frob_arch_sections()
458 else if (strcmp(secstrings + sechdrs[i].sh_name, "__version_ext_names") == 0) in module_frob_arch_sections()
493 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs, secstrings, m in module_frob_arch_sections()
[all...]
/linux/arch/loongarch/kernel/
H A 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/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/arch/sparc/kernel/
H A 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/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/riscv/kernel/
H A Dmodule-sections.c116 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
129 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
131 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
133 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got.plt")) in module_frob_arch_sections()
/linux/arch/x86/entry/vdso/
H A 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/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()
335 if (!module_init_layout_section(secstrings + dstsec->sh_name)) 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()
H A 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/scripts/
H A Dsorttable.c941 const char *secstrings; in do_sort() local
967 secstrings = (const char *)ehdr + shdr_offset(string_sec); in do_sort()
977 if (!strcmp(secstrings + idx, "__ex_table")) in do_sort()
979 if (!strcmp(secstrings + idx, ".symtab")) in do_sort()
981 if (!strcmp(secstrings + idx, ".strtab")) in do_sort()
990 if (!strcmp(secstrings + idx, ".init.data")) in do_sort()
996 if (!strcmp(secstrings + idx, ".orc_unwind_ip")) { in do_sort()
1001 if (!strcmp(secstrings + idx, ".orc_unwind")) { in do_sort()
/linux/arch/s390/kernel/
H A 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/include/linux/
H A Dmoduleloader.h22 char *secstrings,
/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/arch/sh/kernel/
H A Ddwarf.c1094 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_dwarf_finalize() local
1101 && !strcmp(secstrings+sechdrs[i].sh_name, ".eh_frame")) { in module_dwarf_finalize()

12