Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/imgact_elf.c
Show First 20 Lines • Show All 686 Lines • ▼ Show 20 Lines | __elfN(load_section)(struct image_params *imgp, vm_ooffset_t offset, | ||||
} | } | ||||
/* | /* | ||||
* Remove write access to the page if it was only granted by map_insert | * Remove write access to the page if it was only granted by map_insert | ||||
* to allow copyout. | * to allow copyout. | ||||
*/ | */ | ||||
if ((prot & VM_PROT_WRITE) == 0) | if ((prot & VM_PROT_WRITE) == 0) | ||||
vm_map_protect(map, trunc_page(map_addr), round_page(map_addr + | vm_map_protect(map, trunc_page(map_addr), round_page(map_addr + | ||||
map_len), prot, FALSE); | map_len), prot, 0, VM_MAP_PROTECT_SET_PROT); | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
__elfN(load_sections)(struct image_params *imgp, const Elf_Ehdr *hdr, | __elfN(load_sections)(struct image_params *imgp, const Elf_Ehdr *hdr, | ||||
const Elf_Phdr *phdr, u_long rbase, u_long *base_addrp) | const Elf_Phdr *phdr, u_long rbase, u_long *base_addrp) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 2,138 Lines • Show Last 20 Lines |