Lines Matching defs:elfhdrp
326 read_elf32(int fd, int print, Elf32_Ehdr *elfhdrp)
355 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0)
359 entrypt = (func_t)(uintptr_t)elfhdrp->e_entry;
366 nphdrs = elfhdrp->e_phnum;
367 phdrsize = nphdrs * elfhdrp->e_phentsize;
372 dprintf("lseek: args = %x %x %x\n", fd, elfhdrp->e_phoff, 0);
373 if (lseek(fd, elfhdrp->e_phoff, 0) == -1)
386 phdr = (Elf32_Phdr *)(allphdrs + elfhdrp->e_phentsize * i);
444 phdr = (Elf32_Phdr *)(allphdrs + elfhdrp->e_phentsize * i);
633 AUX(av, AT_ENTRY, elfhdrp->e_entry);
636 AUX(av, AT_PHNUM, elfhdrp->e_phnum);
637 AUX(av, AT_PHENT, elfhdrp->e_phentsize);
725 read_elf64(int fd, int print, Elf64_Ehdr *elfhdrp)
755 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0)
758 entrypt = elfhdrp->e_entry;
765 nphdrs = elfhdrp->e_phnum;
766 phdrsize = nphdrs * elfhdrp->e_phentsize;
772 (u_longlong_t)elfhdrp->e_phoff, 0);
773 if (lseek(fd, elfhdrp->e_phoff, 0) == -1)
786 phdr = (Elf64_Phdr *)(allphdrs + elfhdrp->e_phentsize * i);
845 phdr = (Elf64_Phdr *)(allphdrs + elfhdrp->e_phentsize * i);
1024 AUX64(av, AT_ENTRY, elfhdrp->e_entry);
1027 AUX64(av, AT_PHNUM, elfhdrp->e_phnum);
1028 AUX64(av, AT_PHENT, elfhdrp->e_phentsize);