/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | module.c | 256 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local 259 if (!strcmp(".text", secstrings + s->sh_name)) in module_finalize() 261 if (!strcmp(".altinstructions", secstrings + s->sh_name)) in module_finalize() 263 if (!strcmp(".smp_locks", secstrings + s->sh_name)) in module_finalize() 265 if (!strcmp(".parainstructions", secstrings + s->sh_name)) in module_finalize() 267 if (!strcmp(".orc_unwind", secstrings + s->sh_name)) in module_finalize() 269 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name)) in module_finalize() 271 if (!strcmp(".retpoline_sites", secstrings + s->sh_name)) in module_finalize() 273 if (!strcmp(".return_sites", secstrings + s->sh_name)) in module_finalize()
|
/kernel/linux/linux-5.10/arch/hexagon/kernel/ |
H A D | module.c | 24 * @secstrings - symbol names 28 char *secstrings, in module_frob_arch_sections() 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() 27 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/arch/hexagon/kernel/ |
H A D | module.c | 24 * @secstrings - symbol names 28 char *secstrings, in module_frob_arch_sections() 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() 27 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/kernel/module/ |
H A D | livepatch.c | 42 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 D | strict_rwx.c | 63 char *secstrings, struct module *mod) in module_enforce_rwx_sections() 74 mod->name, secstrings + sechdrs[i].sh_name, i); in module_enforce_rwx_sections() 62 module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_enforce_rwx_sections() argument
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | module_32.c | 74 const char *secstrings, in get_plt_size() 85 if ((strstr(secstrings + sechdrs[i].sh_name, ".init") != NULL) in get_plt_size() 90 if (strstr(secstrings + sechdrs[i].sh_name, ".debug")) in get_plt_size() 121 char *secstrings, in module_frob_arch_sections() 128 if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0) in module_frob_arch_sections() 130 else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0) in module_frob_arch_sections() 140 = get_plt_size(hdr, sechdrs, secstrings, 0); in module_frob_arch_sections() 142 = get_plt_size(hdr, sechdrs, secstrings, 1); in module_frob_arch_sections() 72 get_plt_size(const Elf32_Ehdr *hdr, const Elf32_Shdr *sechdrs, const char *secstrings, int is_init) get_plt_size() argument 119 module_frob_arch_sections(Elf32_Ehdr *hdr, Elf32_Shdr *sechdrs, char *secstrings, struct module *me) module_frob_arch_sections() argument
|
H A D | module.c | 24 char *secstrings; in find_section() local 27 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section() 29 if (strcmp(secstrings+sechdrs[i].sh_name, name) == 0) in find_section()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | module_32.c | 75 const char *secstrings, in get_plt_size() 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() 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() 73 get_plt_size(const Elf32_Ehdr *hdr, const Elf32_Shdr *sechdrs, const char *secstrings, int is_init) get_plt_size() argument 120 module_frob_arch_sections(Elf32_Ehdr *hdr, Elf32_Shdr *sechdrs, char *secstrings, struct module *me) module_frob_arch_sections() argument
|
H A D | module.c | 26 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()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | module.c | 282 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 in module_finalize() [all...] |
/kernel/linux/linux-5.10/scripts/ |
H A D | sorttable.h | 212 const char *secstrings; in do_sort() local 229 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort() 237 if (!strcmp(secstrings + idx, "__ex_table")) { in do_sort() 241 if (!strcmp(secstrings + idx, ".symtab")) in do_sort() 243 if (!strcmp(secstrings + idx, ".strtab")) in do_sort() 258 if (!strcmp(secstrings + idx, ".orc_unwind_ip")) { in do_sort() 263 if (!strcmp(secstrings + idx, ".orc_unwind")) { in do_sort()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | cfi.c | 51 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()
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | module-sections.c | 105 char *secstrings, struct module *mod) in module_frob_arch_sections() 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() 104 module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | module-sections.c | 105 char *secstrings, struct module *mod) in module_frob_arch_sections() 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() 104 module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/scripts/ |
H A D | sorttable.h | 278 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()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | module.c | 57 char *secstrings, in module_frob_arch_sections() 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() 55 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | module-sections.c | 91 char *secstrings, struct module *mod) in module_frob_arch_sections() 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() 90 module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | module-sections.c | 91 char *secstrings, struct module *mod) in module_frob_arch_sections() 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() 90 module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | module.c | 57 char *secstrings, in module_frob_arch_sections() 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() 55 module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-5.10/lib/ |
H A D | bug.c | 91 char *secstrings; in module_bug_finalize() local 100 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_bug_finalize() 102 if (strcmp(secstrings+sechdrs[i].sh_name, "__bug_table")) in module_bug_finalize()
|
/kernel/linux/linux-6.6/lib/ |
H A D | bug.c | 91 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()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | vpe.c | 183 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections() 479 const char *secstrings, in simplify_symbols() 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() 182 layout_sections(struct module *mod, const Elf_Ehdr *hdr, Elf_Shdr *sechdrs, const char *secstrings) layout_sections() argument 476 simplify_symbols(Elf_Shdr *sechdrs, unsigned int symindex, const char *strtab, const char *secstrings, unsigned int nsecs, struct module *mod) simplify_symbols() argument
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | module-plts.c | 215 char *secstrings, struct module *mod) in module_frob_arch_sections() 227 if (strcmp(".plt", secstrings + s->sh_name) == 0) in module_frob_arch_sections() 229 else if (strcmp(".init.plt", secstrings + s->sh_name) == 0) in module_frob_arch_sections() 259 if (!module_init_layout_section(secstrings + dstsec->sh_name)) in module_frob_arch_sections() 214 module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | module-plts.c | 210 char *secstrings, struct module *mod) in module_frob_arch_sections() 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() 209 module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings, struct module *mod) module_frob_arch_sections() argument
|
/kernel/linux/linux-6.6/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 55 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()
|