Lines Matching defs:binary
119 /* Query the SKB for the monitor binary to use. */
252 size_t size; ///< size of the binary in memory
253 lvaddr_t vaddr; ///< virtual address of the binary in memory
278 relocate_elf(struct module_blob *binary, struct mem_info *mem,
283 struct Elf64_Ehdr *ehdr = (struct Elf64_Ehdr *)binary->vaddr;
286 struct Elf64_Phdr *phdr = (struct Elf64_Phdr *)(binary->vaddr + ehdr->e_phoff);
287 struct Elf64_Shdr *shead = (struct Elf64_Shdr *)(binary->vaddr + (uintptr_t)ehdr->e_shoff);
316 void * reldata = (void*)(binary->vaddr + shdr->sh_offset);
407 static errval_t load_elf_binary(struct module_blob *binary, struct mem_info *mem,
412 struct Elf64_Ehdr *ehdr = (struct Elf64_Ehdr *)binary->vaddr;
418 struct Elf64_Phdr *phdr = (struct Elf64_Phdr *)(binary->vaddr + ehdr->e_phoff);
443 memcpy(dest, (void *)(binary->vaddr + phdr[i].p_offset), phdr[i].p_filesz);
465 static errval_t elf_find_entry(struct module_blob *binary, const char *sym,
471 entry = elf64_find_symbol_by_name(binary->vaddr, binary->size, sym, 0,
479 *ret_entry = ((struct Elf64_Ehdr *)binary->vaddr)->e_entry;