Lines Matching defs:nphdrs

215 	int		nshdrs, shstrndx, nphdrs;
234 &nphdrs)) != 0 ||
235 (error = getelfphdr(vp, CRED(), ehdr, nphdrs, &phdrbase,
241 if ((len = elfsize(ehdr, nphdrs, phdrbase, &lddata)) == 0) {
249 if (error = mapelfexec(vp, ehdr, nphdrs, phdrbase, &uphdr, &dynphdr,
328 int nshdrs, shstrndx, nphdrs;
345 &nphdrs)) != 0 ||
346 (error = getelfphdr(vp, CRED(), ehdrp, nphdrs, &phdrbase,
410 for (i = nphdrs; i > 0; i--) {
613 len = elfsize(ehdrp, nphdrs, phdrbase, NULL);
619 if ((error = mapelfexec(vp, ehdrp, nphdrs, phdrbase, &uphdr, &intphdr,
747 ADDAUX(aux, AT_PHNUM, nphdrs)
771 &shstrndx, &nphdrs)) != 0 ||
772 (error = getelfphdr(nvp, CRED(), ehdrp, nphdrs, &phdrbase,
785 if ((len = elfsize(ehdrp, nphdrs, phdrbase, &lddata)) == 0) {
793 error = mapelfexec(nvp, ehdrp, nphdrs, phdrbase, &junk, &junk,
1014 elfsize(Ehdr *ehdrp, int nphdrs, caddr_t phdrbase, uintptr_t *lddata)
1026 for (i = nphdrs; i > 0; i--) {
1069 int *nphdrs)
1105 *nphdrs = ehdr->e_phnum;
1113 *shstrndx == SHN_XINDEX || *nphdrs == PN_XNUM) {
1128 if (*nphdrs == PN_XNUM && shdr.sh_info != 0)
1129 *nphdrs = shdr.sh_info;
1142 getelfphdr(vnode_t *vp, cred_t *credp, const Ehdr *ehdr, int nphdrs,
1164 *phsizep = nphdrs * ehdr->e_phentsize;
1272 int nphdrs,
1319 for (i = nphdrs; i > 0; i--) {
1331 for (i = nphdrs; i > 0; i--) {
1603 int nshdrs, shstrndx, nphdrs;
1642 &nphdrs) != 0 ||
1866 int error, i, nphdrs, nshdrs;
1895 nphdrs = prnsegs(as, 0) + 2; /* two CORE note sections */
1914 if (nshdrs == 0 && nphdrs >= PN_XNUM)
1917 phdrsz = nphdrs * sizeof (Phdr);
1969 if (nphdrs >= PN_XNUM)
1972 ehdr->e_phnum = (unsigned short)nphdrs;
1988 ehdr->e_shoff = ehdr->e_phoff + ehdr->e_phentsize * nphdrs;
2039 if (i == nphdrs) {
2123 if (overflow || i != nphdrs) {
2147 for (i = 2; i < nphdrs; i++) {
2241 for (j = i + 1; j < nphdrs; j++) {
2251 sizeof (v[i]) * (nphdrs - i), rlimit, credp)) != 0)
2266 if (nphdrs >= PN_XNUM)
2267 bigwad->shdr[0].sh_info = nphdrs;