| /linux/tools/testing/selftests/sgx/ |
| H A D | load.c | 248 unsigned int flags = phdr->p_flags; in encl_load() 258 phdr->p_flags); in encl_load() 265 phdr->p_flags); in encl_load() 276 seg->prot = (phdr->p_flags & PF_R) ? PROT_READ : 0; in encl_load() 277 seg->prot |= (phdr->p_flags & PF_W) ? PROT_WRITE : 0; in encl_load() 278 seg->prot |= (phdr->p_flags & PF_X) ? PROT_EXEC : 0; in encl_load()
|
| /linux/arch/powerpc/boot/ |
| H A D | elf.h | 102 Elf32_Word p_flags; member 108 Elf64_Word p_flags; member
|
| /linux/drivers/soc/qcom/ |
| H A D | mdt_loader.c | 59 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in mdt_phdr_loadable() 186 if ((phdrs[i].p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) { in qcom_mdt_read_metadata() 257 if (phdr->p_flags & QCOM_MDT_RELOCATABLE) in __qcom_mdt_pas_init() 368 if (phdr->p_flags & QCOM_MDT_RELOCATABLE) in qcom_mdt_load_no_init()
|
| H A D | qcom-geni-se.c | 1041 if (MI_PBT_PAGE_MODE_VALUE(phdr->p_flags) != MI_PBT_NON_PAGED_SEGMENT || in geni_find_protocol_fw() 1042 MI_PBT_SEGMENT_TYPE_VALUE(phdr->p_flags) == MI_PBT_HASH_SEGMENT || in geni_find_protocol_fw() 1043 MI_PBT_ACCESS_TYPE_VALUE(phdr->p_flags) == MI_PBT_NOTUSED_SEGMENT || in geni_find_protocol_fw() 1044 MI_PBT_ACCESS_TYPE_VALUE(phdr->p_flags) == MI_PBT_SHARED_SEGMENT) in geni_find_protocol_fw()
|
| /linux/fs/ |
| H A D | binfmt_elf.c | 626 static inline int make_prot(u32 p_flags, struct arch_elf_state *arch_state, in make_prot() argument 631 if (p_flags & PF_R) in make_prot() 633 if (p_flags & PF_W) in make_prot() 635 if (p_flags & PF_X) in make_prot() 679 int elf_prot = make_prot(eppnt->p_flags, arch_state, in load_elf_interp() 943 if (elf_ppnt->p_flags & PF_X) in load_elf_binary() 1053 elf_prot = make_prot(elf_ppnt->p_flags, &arch_state, in load_elf_binary() 1217 if ((elf_ppnt->p_flags & PF_X) && k < start_code) in load_elf_binary() 1237 if ((elf_ppnt->p_flags & PF_X) && end_code < k) in load_elf_binary() 1467 phdr->p_flags = 0; in fill_elf_note_phdr() [all …]
|
| H A D | binfmt_elf_fdpic.c | 166 if (phdr->p_flags & PF_X) in elf_fdpic_fetch_phdrs() 992 if (phdr->p_flags & PF_X) { in elf_fdpic_map_file_constdisp_on_uclinux() 1046 if (phdr->p_flags & PF_R) prot |= PROT_READ; in elf_fdpic_map_file_by_direct_mmap() 1047 if (phdr->p_flags & PF_W) prot |= PROT_WRITE; in elf_fdpic_map_file_by_direct_mmap() 1048 if (phdr->p_flags & PF_X) prot |= PROT_EXEC; in elf_fdpic_map_file_by_direct_mmap() 1169 if (phdr->p_flags & PF_X) { in elf_fdpic_map_file_by_direct_mmap() 1279 phdr->p_flags = 0; in fill_elf_note_phdr() 1600 phdr.p_flags = 0; in elf_fdpic_core_dump() 1602 phdr.p_flags |= PF_R; in elf_fdpic_core_dump() 1604 phdr.p_flags |= PF_W; in elf_fdpic_core_dump() [all …]
|
| /linux/include/net/ |
| H A D | red.h | 195 struct nla_bitfield32 *p_flags, in red_get_flags() argument 213 *p_flags = flags; in red_get_flags()
|
| /linux/tools/include/uapi/linux/ |
| H A D | elf.h | 264 Elf32_Word p_flags; member 270 Elf64_Word p_flags; member
|
| /linux/include/uapi/linux/ |
| H A D | elf.h | 264 Elf32_Word p_flags; member 270 Elf64_Word p_flags; member
|
| /linux/arch/arm64/kernel/ |
| H A D | elfcore.c | 106 phdr.p_flags = 0; in elf_core_write_extra_phdrs()
|
| /linux/kernel/ |
| H A D | kexec_elf.c | 216 phdr->p_flags = elf32_to_cpu(elf_info->ehdr, buf_phdr->p_flags); in elf_read_phdr()
|
| H A D | crash_core.c | 242 phdr->p_flags = PF_R|PF_W|PF_X; in crash_prepare_elf64_headers() 256 phdr->p_flags = PF_R|PF_W|PF_X; in crash_prepare_elf64_headers()
|
| /linux/arch/mips/boot/ |
| H A D | elf2ecoff.c | 197 p->p_flags = swab32(p->p_flags); in convert_elf_phdrs() 361 if (ph[i].p_flags & PF_W) { in main()
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_elf_helpers.h | 76 ELF_GEN_FIELD_GET_SET(phdr, p_flags, u32) in ELF_GEN_FIELD_GET_SET()
|
| H A D | qcom_common.c | 294 if ((phdr->p_flags & QCOM_MDT_TYPE_MASK) == QCOM_MDT_TYPE_HASH) in qcom_register_dump_segments()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-pid-vm.c | 104 uint32_t p_flags; member 193 ph.p_flags = (1<<2)|1; in make_exe()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-core.c | 383 phdr->p_flags = 0; in create_opalcore() 397 phdr->p_flags = cpu_to_be32(PF_R|PF_W|PF_X); in create_opalcore()
|
| /linux/arch/s390/kernel/ |
| H A D | crash_dump.c | 503 phdr->p_flags = PF_R | PF_W | PF_X; in fill_ptload() 561 phdr->p_flags = PF_R | PF_W | PF_X; in text_init()
|
| /linux/arch/powerpc/kernel/ |
| H A D | fadump.c | 999 phdr->p_flags = PF_R|PF_W|PF_X; in populate_elf_pt_load() 1026 phdr->p_flags = 0; in fadump_populate_elfcorehdr() 1040 phdr->p_flags = 0; in fadump_populate_elfcorehdr()
|
| /linux/tools/perf/util/ |
| H A D | genelf.c | 237 phdr[0].p_flags = PF_X | PF_R; in jit_write_elf()
|
| H A D | symbol-elf.c | 1826 if (!(phdr.p_flags & PF_X)) in elf_read_maps() 1829 if (!(phdr.p_flags & PF_R)) in elf_read_maps() 2049 .p_flags = PF_R | PF_W | PF_X, in kcore__add_phdr()
|
| /linux/sound/pci/mixart/ |
| H A D | mixart_hwdep.c | 86 __be32 p_flags; member
|
| /linux/fs/proc/ |
| H A D | kcore.c | 398 phdr->p_flags = PF_R | PF_W | PF_X; in read_kcore_iter()
|
| H A D | vmcore.c | 891 phdr.p_flags = 0; in merge_note_headers_elf64() 1082 phdr.p_flags = 0; in merge_note_headers_elf32()
|
| /linux/tools/lib/bpf/ |
| H A D | usdt.c | 434 (long)phdr.p_type, (long)phdr.p_flags); in parse_elf_segs() 449 seg->is_exec = phdr.p_flags & PF_X; in parse_elf_segs()
|