Lines Matching defs:elfdata
250 caddr_t elfdata = NULL;
447 if ((elfdata = calloc(1, size)) == NULL) {
453 ep = (Ehdr *)elfdata;
471 sp = (Shdr *)(elfdata + ep->e_shoff);
479 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize,
504 (void) memcpy(&elfdata[off], shstr, sizeof (shstr));
526 if (Pread(P, &elfdata[off], sp->sh_size,
553 if (Pread(P, &elfdata[off], sp->sh_size,
579 if (Pread(P, &elfdata[off], sp->sh_size,
603 (void) memcpy(&elfdata[off], dp, sp->sh_size);
704 if (Pread(P, &elfdata[off], sp->sh_size, sp->sh_addr) !=
717 assert(((uintptr_t)(sp) - 1) < ((uintptr_t)elfdata + size));
720 if ((elf = elf_memory(elfdata, size)) == NULL) {
723 free(elfdata);
727 fptr->file_elfmem = elfdata;
734 if (elfdata != NULL)
735 free(elfdata);