Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dmodule.c260 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
263 if (!strcmp(".text", secstrings + s->sh_name)) in module_finalize()
265 if (!strcmp(".altinstructions", secstrings + s->sh_name)) in module_finalize()
267 if (!strcmp(".smp_locks", secstrings + s->sh_name)) in module_finalize()
269 if (!strcmp(".parainstructions", secstrings + s->sh_name)) in module_finalize()
271 if (!strcmp(".orc_unwind", secstrings + s->sh_name)) in module_finalize()
273 if (!strcmp(".orc_unwind_ip", secstrings + s->sh_name)) in module_finalize()
275 if (!strcmp(".retpoline_sites", secstrings + s->sh_name)) in module_finalize()
277 if (!strcmp(".return_sites", secstrings + s->sh_name)) in module_finalize()
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Dmodule_32.c74 const char *secstrings, in get_plt_size() argument
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() argument
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()
H A Dmodule.c24 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()
H A Dmodule_64.c290 char *secstrings, in module_frob_arch_sections() argument
298 if (strcmp(secstrings + sechdrs[i].sh_name, ".stubs") == 0) in module_frob_arch_sections()
300 else if (strcmp(secstrings + sechdrs[i].sh_name, ".toc") == 0) { in module_frob_arch_sections()
305 else if (strcmp(secstrings+sechdrs[i].sh_name,"__versions")==0) in module_frob_arch_sections()
310 while ((p = strstr(secstrings + sechdrs[i].sh_name, ".init"))) in module_frob_arch_sections()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/scripts/
H A Dsorttable.h212 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()
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dmodule-plts.c292 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
306 if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
308 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt")) in module_frob_arch_sections()
310 else if (!strcmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
340 !strcmp(secstrings + dstsec->sh_name, ".rodata")) { in module_frob_arch_sections()
358 !strcmp(secstrings + dstsec->sh_name, ".text")) { in module_frob_arch_sections()
379 if (!str_has_prefix(secstrings + dstsec->sh_name, ".init")) in module_frob_arch_sections()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/lib/
H A Dbug.c93 char *secstrings; in module_bug_finalize() local
102 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_bug_finalize()
104 if (strcmp(secstrings+sechdrs[i].sh_name, "__bug_table")) in module_bug_finalize()
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dvpe.c183 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.c434 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize() local
441 if (strcmp("__dbe_table", secstrings + s->sh_name) != 0) in module_finalize()
/OK3568_Linux_fs/kernel/arch/arm/kernel/
H A Dmodule-plts.c215 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
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 (strncmp(secstrings + dstsec->sh_name, ".init", 5) != 0) in module_frob_arch_sections()
/OK3568_Linux_fs/kernel/arch/x86/entry/vdso/
H A Dvdso2c.h20 const char *secstrings; in BITSFUNC() local
70 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC()
77 if (!strcmp(secstrings + GET_LE(&sh->sh_name), in BITSFUNC()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A Dmodule.c111 char *secstrings, struct module *me) in module_frob_arch_sections() argument
473 char *secstrings, *secname; in module_finalize() local
493 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
496 secname = secstrings + s->sh_name; in module_finalize()
/OK3568_Linux_fs/kernel/kernel/
H A Dmodule-internal.h18 char *secstrings, *strtab; member
H A Dmodule.c364 && strcmp(info->secstrings + shdr->sh_name, name) == 0) in find_sec()
1632 kstrdup(info->secstrings + sec->sh_name, GFP_KERNEL); in add_sect_attrs()
2101 char *secstrings, struct module *mod) in module_enforce_rwx_sections() argument
2109 mod->name, secstrings + sechdrs[i].sh_name, i); in module_enforce_rwx_sections()
2121 char *secstrings, struct module *mod) in module_enforce_rwx_sections() argument
2157 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf()
2158 if (mod->klp_info->secstrings == NULL) { in copy_module_elf()
2188 kfree(mod->klp_info->secstrings); in free_module_elf()
2452 info->secstrings, in apply_relocations()
2513 const char *sname = info->secstrings + s->sh_name; in layout_sections()
[all …]
/OK3568_Linux_fs/kernel/arch/parisc/kernel/
H A Dmodule.c300 CONST char *secstrings, in module_frob_arch_sections() argument
316 if (strncmp(secstrings + sechdrs[i].sh_name, in module_frob_arch_sections()
864 char *secstrings; in module_finalize() local
940 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
943 char *secname = secstrings + s->sh_name; in module_finalize()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/include/linux/
H A Dmoduleloader.h19 char *secstrings,
H A Dmodule.h362 char *secstrings; member
/OK3568_Linux_fs/kernel/arch/nds32/kernel/
H A Dmodule.c24 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/scripts/mod/
H A Dmodpost.c484 const char *secstrings; in parse_elf() local
565 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
577 secname = secstrings + sechdrs[i].sh_name; in parse_elf()

12