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