Home
last modified time | relevance | path

Searched refs:sh_flags (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v4.19/tools/perf/util/
Dgenelf.c198 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
232 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
320 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf()
365 shdr->sh_flags = 0; in jit_write_elf()
401 shdr->sh_flags = 0; in jit_write_elf()
444 shdr->sh_flags = 0; in jit_write_elf()
487 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
Dgenelf_debug.c532 shdr->sh_flags = 0; in jit_add_debug_info()
566 shdr->sh_flags = 0; in jit_add_debug_info()
600 shdr->sh_flags = 0; in jit_add_debug_info()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_irq.c104 unsigned long sh_flags = 0; in drm_irq_install() local
128 sh_flags = IRQF_SHARED; in drm_irq_install()
131 sh_flags, dev->driver->name, dev); in drm_irq_install()
/Linux-v4.19/arch/riscv/kernel/
Dmodule-sections.c129 if (!(dst_sec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
136 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
143 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
150 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
/Linux-v4.19/arch/arm64/kernel/
Dmodule-plts.c243 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
258 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
265 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
273 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
/Linux-v4.19/arch/arm/kernel/
Dmodule-plts.c230 if (!(dstsec->sh_flags & SHF_EXECINSTR)) in module_frob_arch_sections()
245 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
252 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
Dmodule.c354 if (!(s->sh_flags & SHF_ALLOC)) in module_finalize()
/Linux-v4.19/kernel/
Dmodule.c352 if ((shdr->sh_flags & SHF_ALLOC) in find_sec()
1451 return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0; in sect_empty()
2316 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC)) in apply_relocations()
2320 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH) in apply_relocations()
2382 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2383 || (s->sh_flags & masks[m][1]) in layout_sections()
2415 if ((s->sh_flags & masks[m][0]) != masks[m][0] in layout_sections()
2416 || (s->sh_flags & masks[m][1]) in layout_sections()
2559 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
2561 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type()
[all …]
Dkexec_file.c737 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_kbuf()
811 if (!(sechdrs[i].sh_flags & SHF_ALLOC)) in kexec_purgatory_setup_sechdrs()
823 if (sechdrs[i].sh_flags & SHF_EXECINSTR && in kexec_purgatory_setup_sechdrs()
875 if (!(section->sh_flags & SHF_ALLOC)) in kexec_apply_relocations()
/Linux-v4.19/include/uapi/linux/
Delf.h306 Elf32_Word sh_flags; member
319 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member
/Linux-v4.19/arch/mips/kernel/
Dvpe.c203 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-v4.19/scripts/
Drecordmcount.h221 mcsec.sh_flags = _w(SHF_ALLOC); in append_func()
235 mcsec.sh_flags = 0; in append_func()
467 !(_w(txthdr->sh_flags) & SHF_EXECINSTR)) in __has_rel_mcount()
/Linux-v4.19/arch/ia64/kernel/
Dmodule.c467 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-v4.19/arch/x86/tools/
Drelocs.c412 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
579 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in print_absolute_relocs()
664 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) { in walk_relocs()
/Linux-v4.19/arch/mips/boot/tools/
Drelocs.c281 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-v4.19/samples/bpf/
Dbpf_load.c534 shdr.sh_link, (int) shdr.sh_flags); in do_load_bpf_file()
599 !(shdr_prog.sh_flags & SHF_EXECINSTR)) in do_load_bpf_file()
/Linux-v4.19/arch/powerpc/kernel/
Dkexec_elf_64.c365 shdr->sh_flags = elf_addr_to_cpu(ehdr, buf_shdr->sh_flags); in elf_read_shdr()
/Linux-v4.19/tools/objtool/
Delf.c519 sec->sh.sh_flags = SHF_ALLOC; in elf_create_section()
580 sec->sh.sh_flags = SHF_INFO_LINK; in elf_create_rela_section()
Dcheck.c267 if (!(sec->sh.sh_flags & SHF_EXECINSTR)) in decode_instructions()
/Linux-v4.19/arch/mips/boot/
Delf2ecoff.c210 s->sh_flags = swab32(s->sh_flags); in convert_elf_shdrs()
/Linux-v4.19/scripts/mod/
Dmodpost.c498 sechdrs[i].sh_flags = TO_NATIVE(sechdrs[i].sh_flags); in parse_elf()
862 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1557 return ((elf->sechdrs[section_index].sh_flags & SHF_EXECINSTR) == SHF_EXECINSTR); in is_executable_section()
/Linux-v4.19/tools/lib/bpf/
Dlibbpf.c725 if (sh.sh_flags & SHF_EXECINSTR) in section_have_execinstr()
775 (int)sh.sh_link, (unsigned long)sh.sh_flags, in bpf_object__elf_collect()
806 (sh.sh_flags & SHF_EXECINSTR) && in bpf_object__elf_collect()
/Linux-v4.19/kernel/livepatch/
Dcore.c248 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_write_object_relocations()
/Linux-v4.19/arch/sh/kernel/
Ddwarf.c1102 if ((sechdrs[i].sh_flags & SHF_ALLOC) in module_dwarf_finalize()
/Linux-v4.19/arch/parisc/kernel/
Dmodule.c904 && (sechdrs[i].sh_flags & SHF_ALLOC)) { in module_finalize()

12