Home
last modified time | relevance | path

Searched refs:nshdrs (Results 1 – 3 of 3) sorted by relevance

/titanic_44/usr/src/uts/common/exec/elf/
H A Delf.c182 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()
[all …]
/titanic_44/usr/src/lib/libproc/common/
H A DPgcore.c621 uint_t nshdrs = 0; in count_sections() local
636 nshdrs++; in count_sections()
647 nshdrs += 2; in count_sections()
654 nshdrs += 2; in count_sections()
658 return (nshdrs == 0 ? 0 : nshdrs + 2); in count_sections()
1047 uint_t nphdrs, nshdrs; in Pfgcore() local
1080 nshdrs = count_sections(&pgc); in Pfgcore()
1094 if (nshdrs == 0 && nphdrs >= PN_XNUM) in Pfgcore()
1095 nshdrs = 1; in Pfgcore()
1133 if (nshdrs > 0) { in Pfgcore()
[all …]
H A DPsymtab.c1547 size_t *nshdrs, Elf_Data **shdata) in build_fake_elf() argument
1556 elf_getshdrnum(elf, nshdrs) == -1 || in build_fake_elf()
1584 size_t nshdrs, shstrndx; in Pbuild_file_symtab() local
1644 if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) == in Pbuild_file_symtab()
1652 if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) == in Pbuild_file_symtab()
1659 elf_getshdrnum(elf, &nshdrs) == -1 || in Pbuild_file_symtab()
1669 if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) == in Pbuild_file_symtab()
1686 if ((newelf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) in Pbuild_file_symtab()
1709 if ((cache = malloc(nshdrs * sizeof (*cache))) == NULL) { in Pbuild_file_symtab()
1751 for (i = 1, cp = cache + 1; i < nshdrs; i++, cp++) { in Pbuild_file_symtab()
[all …]