Lines Matching refs:nshdrs

182 	int		nshdrs, shstrndx, nphdrs;  in mapexec_brand()  local
200 if ((error = getelfhead(vp, CRED(), ehdr, &nshdrs, &shstrndx, in mapexec_brand()
293 int nshdrs, shstrndx, nphdrs; in elfexec() local
309 if ((error = getelfhead(vp, CRED(), ehdrp, &nshdrs, &shstrndx, in elfexec()
682 if ((error = getelfhead(nvp, CRED(), ehdrp, &nshdrs, in elfexec()
997 getelfhead(vnode_t *vp, cred_t *credp, Ehdr *ehdr, int *nshdrs, int *shstrndx, in getelfhead() argument
1032 *nshdrs = ehdr->e_shnum; in getelfhead()
1041 if ((*nshdrs == 0 && ehdr->e_shoff != 0) || in getelfhead()
1053 if (*nshdrs == 0) in getelfhead()
1054 *nshdrs = shdr.sh_size; in getelfhead()
1124 int nshdrs, int shstrndx, caddr_t *shbasep, ssize_t *shsizep, in getelfshdr() argument
1141 shstrndx >= nshdrs) in getelfshdr()
1144 *shsizep = nshdrs * ehdr->e_shentsize; in getelfshdr()
1496 int nshdrs, shstrndx, nphdrs; in process_scns() local
1534 if (getelfhead(mvp, credp, &ehdr, &nshdrs, &shstrndx, in process_scns()
1536 getelfshdr(mvp, credp, &ehdr, nshdrs, shstrndx, in process_scns()
1541 for (j = 1; j < nshdrs; j++, off += ehdr.e_shentsize) { in process_scns()
1557 shdr->sh_link < nshdrs) { in process_scns()
1621 symtab->sh_link >= nshdrs) in process_scns()
1759 int error, i, nphdrs, nshdrs; in elfcore() local
1793 nshdrs = 0; in elfcore()
1796 NULL, &nshdrs); in elfcore()
1800 ASSERT(nshdrs == 0 || nshdrs > 1); in elfcore()
1807 if (nshdrs == 0 && nphdrs >= PN_XNUM) in elfcore()
1808 nshdrs = 1; in elfcore()
1811 shdrsz = nshdrs * sizeof (Shdr); in elfcore()
1870 if (nshdrs > 0) { in elfcore()
1871 if (nshdrs >= SHN_LORESERVE) in elfcore()
1874 ehdr->e_shnum = (unsigned short)nshdrs; in elfcore()
1876 if (nshdrs - 1 >= SHN_LORESERVE) in elfcore()
1879 ehdr->e_shstrndx = (unsigned short)(nshdrs - 1); in elfcore()
2150 if (nshdrs > 0) { in elfcore()
2153 if (nshdrs >= SHN_LORESERVE) in elfcore()
2154 bigwad->shdr[0].sh_size = nshdrs; in elfcore()
2156 if (nshdrs - 1 >= SHN_LORESERVE) in elfcore()
2157 bigwad->shdr[0].sh_link = nshdrs - 1; in elfcore()
2162 if (nshdrs > 1) { in elfcore()
2165 &bigwad->shdr[0], nshdrs, rlimit, &doffset, in elfcore()