Lines Matching refs:memsz
136 uint64_t filesz, uint64_t memsz) in elf_load_image() argument
139 elf_memset_safe(elf, dst + filesz, 0, memsz - filesz); in elf_load_image()
170 …load_image(struct elf_binary *elf, elf_ptrval dst, elf_ptrval src, uint64_t filesz, uint64_t memsz) in elf_load_image() argument
173 if ( filesz > ULONG_MAX || memsz > ULONG_MAX ) in elf_load_image()
182 memsz - filesz); in elf_load_image()
470 uint64_t low = -1, high = 0, paddr, memsz; in elf_parse_binary() local
483 memsz = elf_uval(elf, phdr, p_memsz); in elf_parse_binary()
485 paddr, memsz); in elf_parse_binary()
488 if ( high < paddr + memsz ) in elf_parse_binary()
489 high = paddr + memsz; in elf_parse_binary()
500 uint64_t paddr, offset, filesz, memsz; in elf_load_binary() local
522 memsz = elf_uval(elf, phdr, p_memsz); in elf_load_binary()
530 if ( remain_allow_copy < memsz ) in elf_load_binary()
536 remain_allow_copy -= memsz; in elf_load_binary()
541 if ( elf_load_image(elf, dest, ELF_IMAGE_BASE(elf) + offset, filesz, memsz) != 0 ) in elf_load_binary()