Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 1 of 1) sorted by relevance

/DragonOS/kernel/src/libs/
H A Delf.rs165 let mut prot = ProtFlags::empty(); in make_prot() localVariable
167 prot |= ProtFlags::PROT_READ; in make_prot()
170 prot |= ProtFlags::PROT_WRITE; in make_prot()
173 prot |= ProtFlags::PROT_EXEC; in make_prot()
179 return prot; in make_prot()
206 prot: &ProtFlags, in load_elf_segment()
240 let tmp_prot = if !prot.contains(ProtFlags::PROT_WRITE) { in load_elf_segment()
241 *prot | ProtFlags::PROT_WRITE in load_elf_segment()
243 *prot in load_elf_segment()
278 if tmp_prot != *prot { in load_elf_segment()
[all …]