Lines Matching defs:nphdrs

182 	int		nshdrs, shstrndx, nphdrs;
201 &nphdrs)) != 0 ||
202 (error = getelfphdr(vp, CRED(), ehdr, nphdrs, &phdrbase,
208 if ((len = elfsize(ehdr, nphdrs, phdrbase, &lddata)) == 0) {
216 if (error = mapelfexec(vp, ehdr, nphdrs, phdrbase, &uphdr, &dynphdr,
293 int nshdrs, shstrndx, nphdrs;
310 &nphdrs)) != 0 ||
311 (error = getelfphdr(vp, CRED(), ehdrp, nphdrs, &phdrbase,
369 for (i = nphdrs; i > 0; i--) {
534 len = elfsize(ehdrp, nphdrs, phdrbase, NULL);
540 if ((error = mapelfexec(vp, ehdrp, nphdrs, phdrbase, &uphdr, &dyphdr,
659 ADDAUX(aux, AT_PHNUM, nphdrs)
683 &shstrndx, &nphdrs)) != 0 ||
684 (error = getelfphdr(nvp, CRED(), ehdrp, nphdrs, &phdrbase,
697 if ((len = elfsize(ehdrp, nphdrs, phdrbase, &lddata)) == 0) {
705 error = mapelfexec(nvp, ehdrp, nphdrs, phdrbase, &junk, &junk,
943 elfsize(Ehdr *ehdrp, int nphdrs, caddr_t phdrbase, uintptr_t *lddata)
955 for (i = nphdrs; i > 0; i--) {
998 int *nphdrs)
1034 *nphdrs = ehdr->e_phnum;
1042 *shstrndx == SHN_XINDEX || *nphdrs == PN_XNUM) {
1057 if (*nphdrs == PN_XNUM && shdr.sh_info != 0)
1058 *nphdrs = shdr.sh_info;
1071 getelfphdr(vnode_t *vp, cred_t *credp, const Ehdr *ehdr, int nphdrs,
1093 *phsizep = nphdrs * ehdr->e_phentsize;
1201 int nphdrs,
1244 for (i = nphdrs; i > 0; i--) {
1256 for (i = nphdrs; i > 0; i--) {
1496 int nshdrs, shstrndx, nphdrs;
1535 &nphdrs) != 0 ||
1759 int error, i, nphdrs, nshdrs;
1788 nphdrs = prnsegs(as, 0) + 2; /* two CORE note sections */
1807 if (nshdrs == 0 && nphdrs >= PN_XNUM)
1810 phdrsz = nphdrs * sizeof (Phdr);
1862 if (nphdrs >= PN_XNUM)
1865 ehdr->e_phnum = (unsigned short)nphdrs;
1881 ehdr->e_shoff = ehdr->e_phoff + ehdr->e_phentsize * nphdrs;
1932 if (i == nphdrs) {
2016 if (overflow || i != nphdrs) {
2040 for (i = 2; i < nphdrs; i++) {
2134 for (j = i + 1; j < nphdrs; j++) {
2144 sizeof (v[i]) * (nphdrs - i), rlimit, credp)) != 0)
2159 if (nphdrs >= PN_XNUM)
2160 bigwad->shdr[0].sh_info = nphdrs;