Lines Matching defs:elfdata
246 caddr_t elfdata = NULL;
447 if ((elfdata = calloc(1, size)) == NULL)
451 ep = (Ehdr *)elfdata;
469 sp = (Shdr *)(elfdata + ep->e_shoff);
477 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize,
502 (void) memcpy(&elfdata[off], shstr, sizeof (shstr));
524 if (Pread(P, &elfdata[off], sp->sh_size,
551 if (Pread(P, &elfdata[off], sp->sh_size,
577 if (Pread(P, &elfdata[off], sp->sh_size,
601 (void) memcpy(&elfdata[off], dp, sp->sh_size);
697 if (Pread(P, &elfdata[off], sp->sh_size, sp->sh_addr) !=
709 assert(((uintptr_t)(sp) - 1) < ((uintptr_t)elfdata + size));
712 if ((elf = elf_memory(elfdata, size)) == NULL) {
713 free(elfdata);
717 fptr->file_elfmem = elfdata;
724 if (elfdata != NULL)
725 free(elfdata);