Home
last modified time | relevance | path

Searched refs:PF_X (Results 1 – 25 of 40) sorted by relevance

12

/openbsd/src/lib/csu/
Dboot.h158 if ((phdp->p_flags & (PF_X | PF_W)) != (PF_X | PF_W)) in _dl_boot_bind()
/openbsd/src/sys/lib/libsa/
Dloadfile_elf.c119 (phdr[i].p_flags & (PF_W|PF_R|PF_X)) == 0) in ELFNAME()
129 #define IS_TEXT(p) (p.p_flags & PF_X) in ELFNAME()
130 #define IS_DATA(p) ((p.p_flags & PF_X) == 0) in ELFNAME()
/openbsd/src/lib/csu/hppa/
Dboot_md.h172 if ((phdp->p_flags & (PF_X | PF_W)) != (PF_X | PF_W)) in _dl_boot_bind()
/openbsd/src/usr.sbin/vmd/
Dloadfile_elf.c726 (phdr[i].p_flags & (PF_W|PF_R|PF_X)) == 0) in elf64_exec()
729 #define IS_TEXT(p) (p.p_flags & PF_X) in elf64_exec()
730 #define IS_DATA(p) ((p.p_flags & PF_X) == 0) in elf64_exec()
944 (phdr[i].p_flags & (PF_W|PF_R|PF_X)) == 0) in elf32_exec()
947 #define IS_TEXT(p) (p.p_flags & PF_X) in elf32_exec()
948 #define IS_DATA(p) ((p.p_flags & PF_X) == 0) in elf32_exec()
/openbsd/src/gnu/llvm/lld/ELF/
DWriter.cpp2257 return PF_R | PF_W | PF_X; in computeFlags()
2258 if (config->executeOnly && (flags & PF_X)) in computeFlags()
2261 return flags | PF_X; in computeFlags()
2409 perm |= PF_X; in createPhdrs()
2418 addHdr(PT_OPENBSD_WXNEEDED, PF_X); in createPhdrs()
2423 addHdr(PT_OPENBSD_NOBTCFI, PF_X); in createPhdrs()
2486 (prev->p_flags & PF_X) != (p->p_flags & PF_X)) || in fixSectionAlignments()
2612 if (p->p_type == PT_LOAD && (p->p_flags & PF_X)) in assignFileOffsets()
2910 if (p->p_type == PT_LOAD && (p->p_flags & PF_X)) in writeTrapInstr()
2925 if (last && (last->p_flags & PF_X)) in writeTrapInstr()
DOutputSections.cpp56 ret |= PF_X; in getPhdrFlags()
/openbsd/src/gnu/usr.bin/binutils/gdb/
Dnto-tdep.c250 if (phdr->p_type == PT_LOAD && (phdr->p_flags & PF_X)) in find_load_phdr()
Dgcore.c304 p_flags |= PF_X; /* Segment is executable. */ in make_output_phdrs()
/openbsd/src/libexec/ld.so/
Dloader.c461 if ((phdp->p_flags & (PF_X | PF_W)) != (PF_X | PF_W)) in _dl_self_relro()
480 (((X) & PF_X) ? PROT_EXEC : 0))
Dlibrary.c45 (((X) & PF_X) ? PROT_EXEC : 0))
Dlibrary_mquery.c45 (((X) & PF_X) ? PROT_EXEC : 0))
/openbsd/src/sys/arch/sparc64/stand/ofwboot/
Delf64_exec.c146 (phdr.p_flags & (PF_W|PF_X)) == 0) in elf64_exec()
/openbsd/src/sys/kern/
Dexec_elf.c200 *prot |= (ph->p_flags & PF_X) ? PROT_EXEC : 0; in elf_load_psection()
209 if ((ph->p_flags & (PF_X | PF_W)) != (PF_X | PF_W) && in elf_load_psection()
1395 phdr.p_flags |= PF_X; in coredump_walk_elf()
/openbsd/src/gnu/usr.bin/binutils/include/elf/
Dcommon.h302 #define PF_X (1 << 0) /* Segment is executable */ macro
/openbsd/src/gnu/usr.bin/binutils-2.17/include/elf/
Dcommon.h323 #define PF_X (1 << 0) /* Segment is executable */ macro
/openbsd/src/sys/arch/hppa/stand/mkboot/
Dmkboot.c219 ntohl(elf_segments[i].p_flags) & PF_X) { in putfile()
/openbsd/src/gnu/llvm/llvm/tools/llvm-objdump/
DELFDump.cpp289 << ((Phdr.p_flags & ELF::PF_X) ? "x" : "-") << "\n"; in printProgramHeaders()
/openbsd/src/sys/sys/
Dexec_elf.h487 #define PF_X 0x1 /* Executable */ macro
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/
Delf.c1155 (p->p_flags & PF_X) != 0 ? 'x' : '-'); in _bfd_elf_print_private_bfd_data()
1156 if ((p->p_flags &~ (unsigned) (PF_R | PF_W | PF_X)) != 0) in _bfd_elf_print_private_bfd_data()
1157 fprintf (f, " %lx", p->p_flags &~ (unsigned) (PF_R | PF_W | PF_X)); in _bfd_elf_print_private_bfd_data()
2562 if (hdr->p_flags & PF_X) in _bfd_elf_make_section_from_phdr()
2591 if (hdr->p_flags & PF_X) in _bfd_elf_make_section_from_phdr()
3717 m->p_flags = PF_R | PF_X; in map_sections_to_segments()
3996 m->p_flags = PF_X; in map_sections_to_segments()
4011 m->p_flags = PF_X; in map_sections_to_segments()
4654 p->p_flags |= PF_X; in assign_file_positions_for_segments()
Delf64-hppa.c2670 m->p_flags = PF_R | PF_X;
2694 m->p_flags |= (PF_X | PF_HP_CODE);
/openbsd/src/gnu/llvm/llvm/include/llvm/BinaryFormat/
DELF.h1431 PF_X = 1, // Execute enumerator
/openbsd/src/gnu/usr.bin/binutils/bfd/
Delf.c989 (p->p_flags & PF_X) != 0 ? 'x' : '-'); in _bfd_elf_print_private_bfd_data()
990 if ((p->p_flags &~ (unsigned) (PF_R | PF_W | PF_X)) != 0) in _bfd_elf_print_private_bfd_data()
991 fprintf (f, " %lx", p->p_flags &~ (unsigned) (PF_R | PF_W | PF_X)); in _bfd_elf_print_private_bfd_data()
2218 if (hdr->p_flags & PF_X) in _bfd_elf_make_section_from_phdr()
2247 if (hdr->p_flags & PF_X) in _bfd_elf_make_section_from_phdr()
3257 m->p_flags = PF_R | PF_X; in map_sections_to_segments()
4072 p->p_flags |= PF_X; in assign_file_positions_for_segments()
Delf64-hppa.c2637 m->p_flags = PF_R | PF_X;
2661 m->p_flags |= (PF_X | PF_HP_CODE);
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cpp653 bool executable = phdr->p_flags & PF_X; in AddModuleSegments()
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/elf-core/
DProcessElfCore.cpp139 ((header.p_flags & llvm::ELF::PF_X) ? lldb::ePermissionsExecutable : 0u); in AddAddressRangeFromLoadSegment()

12