aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-03-07 13:36:43 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-03-07 13:36:43 +0000
commit0bbee4cd3ff6a7659851fd9485eb567bbc123463 (patch)
tree4f89ef1513b43247d198a575d8a490ed6a643684 /sys/kern
parentca2ad6bd779fae857f27b028d736f506b66a528a (diff)
downloadsrc-0bbee4cd3ff6a7659851fd9485eb567bbc123463.tar.gz
src-0bbee4cd3ff6a7659851fd9485eb567bbc123463.zip
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/imgact_elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index b07988fe4451..de5a1c1aaa14 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -89,7 +89,7 @@ static Elf_Brandinfo *__elfN(get_brandinfo)(struct image_params *imgp,
const char *interp, int interp_name_len, int32_t *osrel);
static int __elfN(load_file)(struct proc *p, const char *file, u_long *addr,
u_long *entry, size_t pagesize);
-static int __elfN(load_section)(struct image_params *imgp, vm_offset_t offset,
+static int __elfN(load_section)(struct image_params *imgp, vm_ooffset_t offset,
caddr_t vmaddr, size_t memsz, size_t filsz, vm_prot_t prot,
size_t pagesize);
static int __CONCAT(exec_, __elfN(imgact))(struct image_params *imgp);
@@ -490,7 +490,7 @@ __elfN(map_insert)(struct image_params *imgp, vm_map_t map, vm_object_t object,
}
static int
-__elfN(load_section)(struct image_params *imgp, vm_offset_t offset,
+__elfN(load_section)(struct image_params *imgp, vm_ooffset_t offset,
caddr_t vmaddr, size_t memsz, size_t filsz, vm_prot_t prot,
size_t pagesize)
{
@@ -501,7 +501,7 @@ __elfN(load_section)(struct image_params *imgp, vm_offset_t offset,
vm_offset_t map_addr;
int error, rv, cow;
size_t copy_len;
- vm_offset_t file_addr;
+ vm_ooffset_t file_addr;
/*
* It's necessary to fail if the filsz + offset taken from the