| /Linux-v5.15/tools/perf/util/ |
| D | genelf.c | 193 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 227 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info() 315 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf() 360 shdr->sh_flags = 0; in jit_write_elf() 396 shdr->sh_flags = 0; in jit_write_elf() 439 shdr->sh_flags = 0; in jit_write_elf() 482 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
|
| D | genelf_debug.c | 530 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()
|
| /Linux-v5.15/drivers/gpu/drm/ |
| D | drm_irq.c | 73 unsigned long sh_flags = 0; in drm_legacy_irq_install() local 90 sh_flags = IRQF_SHARED; in drm_legacy_irq_install() 93 sh_flags, dev->driver->name, dev); in drm_legacy_irq_install()
|
| /Linux-v5.15/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-v5.15/arch/arm64/kernel/ |
| D | module-plts.c | 333 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections() 355 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 363 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 371 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
|
| /Linux-v5.15/arch/arm/kernel/ |
| D | module-plts.c | 253 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()
|
| D | module.c | 380 if (!(s->sh_flags & SHF_ALLOC)) in module_finalize()
|
| /Linux-v5.15/kernel/ |
| D | module.c | 355 if ((shdr->sh_flags & SHF_ALLOC) in find_sec() 1472 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty() 2042 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) { in module_enforce_rwx_sections() 2369 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations() 2372 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations() 2450 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections() 2451 || (s->sh_flags & masks[m][1]) in layout_sections() 2483 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections() 2484 || (s->sh_flags & masks[m][1]) in layout_sections() 2641 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type() [all …]
|
| D | kexec_file.c | 852 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_kbuf() 926 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_sechdrs() 938 if (sechdrs[i].sh_flags & SHF_EXECINSTR && in kexec_purgatory_setup_sechdrs() 990 if (!(section->sh_flags & SHF_ALLOC)) in kexec_apply_relocations()
|
| /Linux-v5.15/include/uapi/linux/ |
| D | elf.h | 307 Elf32_Word sh_flags; member 320 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member
|
| /Linux-v5.15/arch/mips/kernel/ |
| D | vpe.c | 203 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections() 204 || (s->sh_flags & masks[m][1]) in layout_sections() 654 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in vpe_elfload() 684 if (!(sechdrs[info].sh_flags & SHF_ALLOC)) in vpe_elfload()
|
| /Linux-v5.15/tools/objtool/ |
| D | elf.c | 290 if (sec->sh.sh_flags & SHF_EXECINSTR) in read_sections() 829 unsigned int sh_flags, size_t entsize, int nr) in elf_create_section() argument 887 sec->sh.sh_flags = SHF_ALLOC | sh_flags; in elf_create_section() 935 sec->sh.sh_flags = SHF_INFO_LINK; in elf_create_rel_reloc_section() 965 sec->sh.sh_flags = SHF_INFO_LINK; in elf_create_rela_reloc_section()
|
| /Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/drivers/remoteproc/ |
| D | remoteproc_elf_helpers.h | 80 ELF_GEN_FIELD_GET_SET(shdr, sh_flags, u32) in ELF_GEN_FIELD_GET_SET()
|
| /Linux-v5.15/arch/x86/tools/ |
| D | relocs.c | 432 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 599 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in print_absolute_relocs() 684 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in walk_relocs()
|
| /Linux-v5.15/tools/objtool/include/objtool/ |
| D | elf.h | 131 struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t…
|
| /Linux-v5.15/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() 744 if (sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf() 908 if (link_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_sanity_check_elf_relos() 1019 shdr->sh_flags = src_sec->shdr->sh_flags; in init_sec() 1063 if (dst->shdr->sh_flags != src->shdr->sh_flags) { in secs_match() 2070 if (src_linked_sec->shdr->sh_flags & SHF_EXECINSTR) { in linker_append_elf_relos() 2636 shdr->sh_flags = 0; in emit_elf_data_sec()
|
| /Linux-v5.15/arch/mips/tools/ |
| D | loongson3-llsc-check.c | 290 if (!(sh->sh_flags & SHF_EXECINSTR)) in main()
|
| /Linux-v5.15/tools/bpf/resolve_btfids/ |
| D | main.c | 282 if (!(sh->sh_flags & SHF_COMPRESSED)) in compressed_section_fix() 366 (int) sh.sh_link, (unsigned long) sh.sh_flags, in elf_collect()
|
| /Linux-v5.15/arch/mips/boot/ |
| D | elf2ecoff.c | 210 s->sh_flags = swab32(s->sh_flags); in convert_elf_shdrs()
|
| /Linux-v5.15/scripts/mod/ |
| D | modpost.c | 551 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf() 904 !(sechdr->sh_flags & SHF_ALLOC) && in check_section() 1611 return ((elf->sechdrs[section_index].sh_flags & SHF_EXECINSTR) == SHF_EXECINSTR); in is_executable_section()
|
| /Linux-v5.15/arch/sh/kernel/ |
| D | dwarf.c | 1100 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
|
| /Linux-v5.15/kernel/livepatch/ |
| D | core.c | 756 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_apply_object_relocs()
|