aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/link_elf.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-01-12 12:43:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-01-12 23:35:22 +0000
commit0659df6faddfb27ba54a2cae2a12552cf4f823a0 (patch)
treec4f516ac92240eb7ed5957b6a4ecd5ecb461e4ed /sys/kern/link_elf.c
parentd89e1db5a3319f4e3bc9403ed883c64638b67f71 (diff)
downloadsrc-0659df6faddfb27ba54a2cae2a12552cf4f823a0.tar.gz
src-0659df6faddfb27ba54a2cae2a12552cf4f823a0.zip
Diffstat (limited to 'sys/kern/link_elf.c')
-rw-r--r--sys/kern/link_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
index d9b5f9437b57..ea21bf447a55 100644
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -1224,7 +1224,7 @@ link_elf_load_file(linker_class_t cls, const char* filename,
error = vm_map_protect(kernel_map,
(vm_offset_t)segbase,
(vm_offset_t)segbase + round_page(segs[i]->p_memsz),
- prot, FALSE);
+ prot, 0, VM_MAP_PROTECT_SET_PROT);
if (error != KERN_SUCCESS) {
error = ENOMEM;
goto out;