Home
last modified time | relevance | path

Searched refs:sh_flags (Results 1 - 25 of 70) sorted by relevance

123

/kernel/linux/linux-6.6/kernel/module/
H A Ddebug_kmemleak.c22 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) || in kmemleak_load_module()
23 !(info->sechdrs[i].sh_flags & SHF_WRITE) || in kmemleak_load_module()
24 (info->sechdrs[i].sh_flags & SHF_EXECINSTR)) in kmemleak_load_module()
H A Dkallsyms.c54 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type()
58 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type()
60 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
66 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
96 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol()
98 || !(sec->sh_flags & SHF_EXECINSTR) in is_core_symbol()
123 symsect->sh_flags |= SHF_ALLOC; in layout_symtab()
150 strsect->sh_flags |= SHF_ALLOC; in layout_symtab()
H A Dstrict_rwx.c72 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) { in module_enforce_rwx_sections()
H A Dmain.c189 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
1452 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations()
1455 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations()
1542 if ((s->sh_flags & masks[m][0]) != masks[m][0] in __layout_sections()
1543 || (s->sh_flags & masks[m][1]) in __layout_sections()
1800 if (shdr->sh_flags & SHF_ALLOC) { in elf_validity_cache_copy()
1865 if (!(shdr->sh_flags & SHF_ALLOC)) { in elf_validity_cache_copy()
2002 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
2003 info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
2263 if (!(shdr->sh_flags in move_module()
[all...]
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dmodule-sections.c147 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
155 got_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
163 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
171 plt_idx_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
179 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dmodule-sections.c147 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
155 got_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
163 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
171 plt_idx_sec->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
179 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_irq.c109 unsigned long sh_flags = 0; in drm_irq_install() local
126 sh_flags = IRQF_SHARED; in drm_irq_install()
129 sh_flags, dev->driver->name, dev); in drm_irq_install()
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_irq.c72 unsigned long sh_flags = 0; in drm_legacy_irq_install() local
89 sh_flags = IRQF_SHARED; in drm_legacy_irq_install()
92 sh_flags, dev->driver->name, dev); in drm_legacy_irq_install()
/kernel/linux/linux-5.10/arch/riscv/kernel/
H A Dmodule-sections.c132 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
139 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
146 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
153 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Dmodule-sections.c132 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
139 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
146 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
153 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dgenelf.c197 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
231 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
333 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf()
378 shdr->sh_flags = 0; in jit_write_elf()
414 shdr->sh_flags = 0; in jit_write_elf()
457 shdr->sh_flags = 0; in jit_write_elf()
500 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
H A Dgenelf_debug.c530 shdr->sh_flags = 0; in jit_add_debug_info()
564 shdr->sh_flags = 0; in jit_add_debug_info()
598 shdr->sh_flags = 0; in jit_add_debug_info()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dgenelf.c199 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
233 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
335 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf()
381 shdr->sh_flags = 0; in jit_write_elf()
417 shdr->sh_flags = 0; in jit_write_elf()
460 shdr->sh_flags = 0; in jit_write_elf()
503 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
H A Dgenelf_debug.c541 shdr->sh_flags = 0; in jit_add_debug_info()
575 shdr->sh_flags = 0; in jit_add_debug_info()
609 shdr->sh_flags = 0; in jit_add_debug_info()
/kernel/linux/linux-5.10/kernel/
H A Dmodule.c360 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
1543 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
2103 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) { in module_enforce_rwx_sections()
2446 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations()
2449 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations()
2514 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2515 || (s->sh_flags & masks[m][1]) in layout_sections()
2547 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2548 || (s->sh_flags & masks[m][1]) in layout_sections()
2705 if (sechdrs[sym->st_shndx].sh_flags in elf_type()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/nonlinux/
H A Ddfx_nonlinux_define.h177 Elf32_Word sh_flags; // Section flags member
190 Elf64_Xword sh_flags; // Section flags member
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dmodule-plts.c253 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
268 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
276 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-6.6/arch/arm/kernel/
H A Dmodule-plts.c248 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
263 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
271 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dmodule-plts.c334 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
356 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
364 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
372 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dmodule-plts.c324 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
346 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
354 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
362 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dvpe.c206 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
207 || (s->sh_flags & masks[m][1]) in layout_sections()
653 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in vpe_elfload()
683 if (!(sechdrs[info].sh_flags & SHF_ALLOC)) in vpe_elfload()
/kernel/linux/linux-6.6/tools/objtool/include/objtool/
H A Dwarn.h21 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Delf.h289 /* sh_flags */
310 Elf32_Word sh_flags; member
323 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Delf.h290 /* sh_flags */
311 Elf32_Word sh_flags; member
324 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Delf.h260 Elf32_Word sh_flags; member
272 Elf64_Xword sh_flags; member

Completed in 23 milliseconds

123