Home
last modified time | relevance | path

Searched refs:nphdrs (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/uts/common/exec/elf/
H A Delf.c182 int nshdrs, shstrndx, nphdrs; in mapexec_brand() local
201 &nphdrs)) != 0 || in mapexec_brand()
202 (error = getelfphdr(vp, CRED(), ehdr, nphdrs, &phdrbase, in mapexec_brand()
208 if ((len = elfsize(ehdr, nphdrs, phdrbase, &lddata)) == 0) { in mapexec_brand()
216 if (error = mapelfexec(vp, ehdr, nphdrs, phdrbase, &uphdr, &dynphdr, in mapexec_brand()
293 int nshdrs, shstrndx, nphdrs; in elfexec() local
310 &nphdrs)) != 0 || in elfexec()
311 (error = getelfphdr(vp, CRED(), ehdrp, nphdrs, &phdrbase, in elfexec()
369 for (i = nphdrs; i > 0; i--) { in elfexec()
534 len = elfsize(ehdrp, nphdrs, phdrbase, NULL); in elfexec()
[all …]
/titanic_41/usr/src/psm/stand/boot/common/
H A Dreadfile.c330 int nphdrs, phdrsize; in read_elf32() local
366 nphdrs = elfhdrp->e_phnum; in read_elf32()
367 phdrsize = nphdrs * elfhdrp->e_phentsize; in read_elf32()
383 for (i = 0; i < nphdrs; i++) { in read_elf32()
443 for (i = 0; i < nphdrs; i++) { in read_elf32()
729 int nphdrs, phdrsize; in read_elf64() local
765 nphdrs = elfhdrp->e_phnum; in read_elf64()
766 phdrsize = nphdrs * elfhdrp->e_phentsize; in read_elf64()
783 for (i = 0; i < nphdrs; i++) { in read_elf64()
844 for (i = 0; i < nphdrs; i++) { in read_elf64()
/titanic_41/usr/src/lib/libproc/common/
H A DPgcore.c1047 uint_t nphdrs, nshdrs; in Pfgcore() local
1079 nphdrs = 2 + P->map_count; in Pfgcore()
1094 if (nshdrs == 0 && nphdrs >= PN_XNUM) in Pfgcore()
1125 if (nphdrs >= PN_XNUM) in Pfgcore()
1128 ehdr.e_phnum = (unsigned short)nphdrs; in Pfgcore()
1145 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
1154 ehdr.e_phentsize * nphdrs + in Pfgcore()
1183 if (nphdrs >= PN_XNUM) in Pfgcore()
1186 ehdr.e_phnum = (unsigned short)nphdrs; in Pfgcore()
1203 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
[all …]
H A DPcore.c1829 size_t nphdrs; in core_find_text() local
1831 if (elf_getphdrnum(elf, &nphdrs) == -1) in core_find_text()
1834 for (i = 0; i < nphdrs; i++) { in core_find_text()
1857 size_t nphdrs; in core_find_data() local
1866 elf_getphdrnum(elf, &nphdrs) == -1) in core_find_data()
1869 for (i = 0; i < nphdrs; i++) { in core_find_data()
/titanic_41/usr/src/uts/common/os/
H A Dmmapobj.c1295 calc_loadable(Ehdr *ehdrp, caddr_t phdrbase, int nphdrs, size_t *len, in calc_loadable() argument
1344 for (i = 0; i < nphdrs; i++) { in calc_loadable()
1528 process_phdr(Ehdr *ehdrp, caddr_t phdrbase, int nphdrs, mmapobj_result_t *mrp, in process_phdr() argument
1624 ret = calc_loadable(ehdrp, phdrbase, nphdrs, &len, in process_phdr()
1763 for (i = 0; i < nphdrs; i++) { in process_phdr()
1918 int nphdrs; in doelfwork() local
1970 nphdrs = e32hdr->e_phnum; in doelfwork()
1980 nphdrs = e64hdr->e_phnum; in doelfwork()
1998 if (nphdrs == PN_XNUM) { in doelfwork()
2003 phsizep = nphdrs * phentsize; in doelfwork()
[all …]