Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/x86/kernel/
H A Dmodule.c282 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
285 if (!strcmp(".altinstructions", secstrings + s->sh_name)) in module_finalize()
287 if (!strcmp(".smp_locks", secstrings + s->sh_name)) in module_finalize()
289 if (!strcmp(".parainstructions", secstrings + s->sh_name)) in module_finalize()
291 if (!strcmp(".orc_unwind", secstrings + s->sh_name)) in module_finalize()
293 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name)) in module_finalize()
295 if (!strcmp(".retpoline_sites", secstrings + s->sh_name)) in module_finalize()
297 if (!strcmp(".return_sites", secstrings + s->sh_name)) in module_finalize()
299 if (!strcmp(".call_sites", secstrings + s->sh_name)) in module_finalize()
301 if (!strcmp(".cfi_sites", secstrings + s->sh_name)) in module_finalize()
[all …]
/openbmc/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.c63 char *secstrings, struct module *mod) in module_enforce_rwx_sections() argument
74 mod->name, secstrings + sechdrs[i].sh_name, i); in module_enforce_rwx_sections()
H A Dinternal.h68 char *secstrings, *strtab; member
329 char *secstrings, struct module *mod);
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()
H A Dmain.c190 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
223 if (strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_any_sec()
1457 info->secstrings, in apply_relocations()
1540 const char *sname = info->secstrings + s->sh_name; in __layout_sections()
1744 info->secstrings = (void *)info->hdr + strhdr->sh_offset; in elf_validity_cache_copy()
1749 if (info->secstrings[strhdr->sh_size - 1] != '\0') { in elf_validity_cache_copy()
1790 if (strcmp(info->secstrings + shdr->sh_name, in elf_validity_cache_copy()
1794 } else if (strcmp(info->secstrings + shdr->sh_name, in elf_validity_cache_copy()
2336 char *secstrings, in module_frob_arch_sections() argument
2371 info->secstrings, info->mod); in layout_and_allocate()
[all …]
/openbmc/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()
/openbmc/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.c26 char *secstrings; in find_section() local
29 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
31 if (strcmp(secstrings+sechdrs[i].sh_name, name) == 0) in find_section()
H A 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()
/openbmc/linux/kernel/
H A 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()
/openbmc/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()
/openbmc/linux/scripts/
H A 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()
/openbmc/linux/arch/sparc/kernel/
H A Dmodule.c57 char *secstrings, in module_frob_arch_sections() argument
188 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections() local
191 if (!strcmp(".sun4v_1insn_patch", secstrings + s->sh_name)) in do_patch_sections()
193 if (!strcmp(".sun4v_2insn_patch", secstrings + s->sh_name)) in do_patch_sections()
/openbmc/linux/arch/riscv/kernel/
H A 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()
/openbmc/linux/lib/
H A 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()
/openbmc/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()
/openbmc/linux/arch/arm64/kernel/
H A Dmodule-plts.c282 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
295 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
297 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt")) in module_frob_arch_sections()
299 else if (!strcmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
336 if (!module_init_layout_section(secstrings + dstsec->sh_name)) in module_frob_arch_sections()
/openbmc/linux/arch/mips/kernel/
H A 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()
/openbmc/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()
/openbmc/linux/arch/ia64/kernel/
H A Dmodule.c423 module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, in module_frob_arch_sections() argument
434 if (strcmp(".core.plt", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
436 else if (strcmp(".init.plt", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
438 else if (strcmp(".got", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
440 else if (strcmp(".opd", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
442 else if (strcmp(".IA_64.unwind", secstrings + s->sh_name) == 0) in module_frob_arch_sections()
460 if (strstr(secstrings + s->sh_name, ".init")) in module_frob_arch_sections()
/openbmc/linux/include/linux/
H A Dmoduleloader.h22 char *secstrings,
/openbmc/linux/arch/s390/kernel/
H A Dmodule.c143 char *secstrings, struct module *me) in module_frob_arch_sections() argument
532 char *secstrings, *secname; in module_finalize() local
549 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
552 secname = secstrings + s->sh_name; in module_finalize()
/openbmc/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()
/openbmc/linux/arch/parisc/kernel/
H A Dmodule.c281 CONST char *secstrings, in module_frob_arch_sections() argument
298 if (strncmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
847 char *secstrings; in module_finalize() local
923 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
926 char *secname = secstrings + s->sh_name; in module_finalize()

12