Lines Matching defs:elfdata
246 caddr_t elfdata = NULL;
442 if ((elfdata = calloc(1, size)) == NULL)
446 ep = (Ehdr *)elfdata;
464 sp = (Shdr *)(elfdata + ep->e_shoff);
472 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize,
497 (void) memcpy(&elfdata[off], shstr, sizeof (shstr));
519 if (Pread(P, &elfdata[off], sp->sh_size,
546 if (Pread(P, &elfdata[off], sp->sh_size,
572 if (Pread(P, &elfdata[off], sp->sh_size,
596 (void) memcpy(&elfdata[off], dp, sp->sh_size);
692 if (Pread(P, &elfdata[off], sp->sh_size, sp->sh_addr) !=
704 assert(((uintptr_t)(sp) - 1) < ((uintptr_t)elfdata + size));
707 if ((elf = elf_memory(elfdata, size)) == NULL) {
708 free(elfdata);
712 fptr->file_elfmem = elfdata;
719 if (elfdata != NULL)
720 free(elfdata);