Lines Matching refs:mapped
277 Elf_W(Ehdr)* ehdr = ei->u.mapped.image; in Elf_W()
279 if (soff + ehdr->e_shnum * ehdr->e_shentsize > ei->u.mapped.size) { in Elf_W()
282 (unsigned long) ei->u.mapped.size); in Elf_W()
286 return (Elf_W(Shdr) *) ((char *) ei->u.mapped.image + soff); in Elf_W()
290 Elf_W(Ehdr)* ehdr = ei->u.mapped.image; in elf_w()
292 if (str_soff + ehdr->e_shentsize > ei->u.mapped.size) { in elf_w()
295 (unsigned long) ei->u.mapped.size); in elf_w()
298 Elf_W(Shdr)* str_shdr = (Elf_W(Shdr) *) ((char *) ei->u.mapped.image + str_soff); in elf_w()
300 if (str_shdr->sh_offset + str_shdr->sh_size > ei->u.mapped.size) { in elf_w()
303 (unsigned long) ei->u.mapped.size); in elf_w()
308 return (char*) ((uintptr_t) ei->u.mapped.image + str_shdr->sh_offset); in elf_w()
320 Elf_W(Ehdr)* ehdr = ei->u.mapped.image; in elf_w()
327 Elf_W(Sym)* symtab = (Elf_W(Sym) *) ((char *) ei->u.mapped.image + shdr->sh_offset); in elf_w()
352 if (str_name > (char*) ei->u.mapped.image + ei->u.mapped.size || in elf_w()
359 uintptr_t max_size = (uintptr_t) str_name - (uintptr_t) ei->u.mapped.image; in elf_w()
393 Elf_W(Ehdr) *ehdr = ei->u.mapped.image; in elf_w()
394 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in elf_w()
407 Elf_W(Ehdr) *ehdr = ei->u.mapped.image; in elf_w()
408 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in elf_w()
435 if (ei->mapped) { in elf_w()
445 if (ei->mapped) { in elf_w()
520 Elf_W (Ehdr) *ehdr = ei->u.mapped.image; in elf_w()
525 if (!ei->valid || !ei->mapped) { in elf_w()
542 if (shdr->sh_offset + shdr->sh_size > ei->u.mapped.size) { in elf_w()
545 (unsigned long) ei->u.mapped.size); in elf_w()
548 *section = ((uint8_t *) ei->u.mapped.image) + shdr->sh_offset; in elf_w()
580 if (ei->mapped && ei->mini_debug_info_data) { in elf_w()
582 mdi.mapped = true; in elf_w()
583 mdi.u.mapped.image = ei->mini_debug_info_data; in elf_w()
584 mdi.u.mapped.size = ei->mini_debug_info_size; in elf_w()
617 if (ei->mapped) { in elf_w()
618 Elf_W(Ehdr)* ehdr = ei->u.mapped.image; in elf_w()
619 Elf_W(Phdr)* phdr = (Elf_W(Phdr)*) ((char*) ei->u.mapped.image + ehdr->e_phoff); in elf_w()