/Linux-v6.6/kernel/module/ |
D | debug_kmemleak.c | 22 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()
|
D | kallsyms.c | 54 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()
|
D | main.c | 189 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 & SHF_ALLOC)) in move_module() [all …]
|
D | strict_rwx.c | 72 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) { in module_enforce_rwx_sections()
|
/Linux-v6.6/arch/loongarch/kernel/ |
D | module-sections.c | 147 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()
|
/Linux-v6.6/tools/perf/util/ |
D | genelf.c | 199 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()
|
D | genelf_debug.c | 541 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()
|
/Linux-v6.6/drivers/gpu/drm/ |
D | drm_irq.c | 72 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()
|
/Linux-v6.6/arch/riscv/kernel/ |
D | module-sections.c | 132 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()
|
/Linux-v6.6/arch/arm64/kernel/ |
D | module-plts.c | 330 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 352 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 360 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 368 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
/Linux-v6.6/arch/arm/kernel/ |
D | module-plts.c | 248 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()
|
/Linux-v6.6/arch/mips/kernel/ |
D | vpe.c | 206 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()
|
/Linux-v6.6/tools/objtool/include/objtool/ |
D | warn.h | 21 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr()
|
/Linux-v6.6/include/uapi/linux/ |
D | elf.h | 311 Elf32_Word sh_flags; member 324 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member
|
/Linux-v6.6/kernel/ |
D | kexec_file.c | 824 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_kbuf() 899 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_sechdrs() 922 if (sechdrs[i].sh_flags & SHF_EXECINSTR && in kexec_purgatory_setup_sechdrs() 975 if (!(section->sh_flags & SHF_ALLOC)) in kexec_apply_relocations()
|
/Linux-v6.6/arch/ia64/kernel/ |
D | module.c | 467 mod->arch.core_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 471 mod->arch.init_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 475 mod->arch.got->sh_flags = ARCH_SHF_SMALL | SHF_ALLOC; in module_frob_arch_sections() 479 mod->arch.opd->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
|
/Linux-v6.6/arch/mips/boot/tools/ |
D | relocs.c | 281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 485 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) in walk_relocs()
|
/Linux-v6.6/scripts/ |
D | recordmcount.h | 310 mcsec.sh_flags = _w(SHF_ALLOC); in append_func() 325 mcsec.sh_flags = 0; in append_func() 568 !(_w(txthdr->sh_flags) & SHF_EXECINSTR)) in __has_rel_mcount()
|
/Linux-v6.6/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 80 ELF_GEN_FIELD_GET_SET(shdr, sh_flags, u32) in ELF_GEN_FIELD_GET_SET()
|
/Linux-v6.6/arch/x86/tools/ |
D | relocs.c | 457 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 653 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in print_absolute_relocs() 738 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in walk_relocs()
|
/Linux-v6.6/tools/lib/bpf/ |
D | linker.c | 371 sec->shdr->sh_flags = SHF_STRINGS; in init_output_elf() 409 sec->shdr->sh_flags = 0; in init_output_elf() 739 if (sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf() 903 if (link_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf_relos() 1014 shdr->sh_flags = src_sec->shdr->sh_flags; in init_sec() 1058 if (dst->shdr->sh_flags != src->shdr->sh_flags) { in secs_match() 2075 if (src_linked_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_append_elf_relos() 2641 shdr->sh_flags = 0; in emit_elf_data_sec()
|
/Linux-v6.6/arch/mips/tools/ |
D | loongson3-llsc-check.c | 290 if (!(sh->sh_flags & SHF_EXECINSTR)) in main()
|
/Linux-v6.6/tools/objtool/ |
D | elf.c | 895 if (!(insn_sec->sh.sh_flags & SHF_EXECINSTR)) { in elf_init_reloc_text_sym() 925 if (sym->sec && (sec->sh.sh_flags & SHF_EXECINSTR)) { in elf_init_reloc_data_sym() 1147 sec->sh.sh_flags = SHF_ALLOC; in elf_create_section() 1195 rsec->sh.sh_flags = SHF_INFO_LINK; in elf_create_rela_section()
|
/Linux-v6.6/tools/bpf/resolve_btfids/ |
D | main.c | 299 if (!(sh->sh_flags & SHF_COMPRESSED)) in compressed_section_fix() 383 (int) sh.sh_link, (unsigned long) sh.sh_flags, in elf_collect()
|
/Linux-v6.6/arch/mips/boot/ |
D | elf2ecoff.c | 210 s->sh_flags = swab32(s->sh_flags); in convert_elf_shdrs()
|