Lines Matching refs:prot
725 int prot = PFLAGS_TO_PROT(phdr->p_flags); in LoadSegments() local
726 if ((prot & (PROT_EXEC | PROT_WRITE)) == (PROT_EXEC | PROT_WRITE)) { in LoadSegments()
741 prot, in LoadSegments()
806 int prot = PFLAGS_TO_PROT(phdr->p_flags) | extra_prot_flags; in _phdr_table_set_load_prot() local
807 if ((prot & PROT_WRITE) != 0) { in _phdr_table_set_load_prot()
809 prot &= ~PROT_EXEC; in _phdr_table_set_load_prot()
812 if ((prot & PROT_EXEC) == 0) { in _phdr_table_set_load_prot()
815 prot &= ~PROT_BTI; in _phdr_table_set_load_prot()
820 mprotect(reinterpret_cast<void*>(seg_page_start), seg_page_end - seg_page_start, prot); in _phdr_table_set_load_prot()
845 int prot = 0; in phdr_table_protect_segments() local
848 prot |= PROT_BTI; in phdr_table_protect_segments()
851 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, prot); in phdr_table_protect_segments()