Searched refs:nshdrs (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf.c | 194 uint_t nshdrs, shstrndx, nphdrs; in mapexec_brand() local 211 if ((error = getelfhead(vp, CRED(), ehdr, &nshdrs, &shstrndx, in mapexec_brand() 309 uint_t nshdrs, shstrndx, nphdrs; in elfexec() local 326 if ((error = getelfhead(vp, CRED(), ehdrp, &nshdrs, &shstrndx, in elfexec() 786 if ((error = getelfhead(nvp, CRED(), ehdrp, &nshdrs, in elfexec() 1112 getelfhead(vnode_t *vp, cred_t *credp, Ehdr *ehdr, uint_t *nshdrs, in getelfhead() argument 1147 *nshdrs = ehdr->e_shnum; in getelfhead() 1156 if ((*nshdrs == 0 && ehdr->e_shoff != 0) || in getelfhead() 1169 if (*nshdrs == 0) in getelfhead() 1170 *nshdrs = shdr.sh_size; in getelfhead() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pgcore.c | 598 uint_t nshdrs = 0; in count_sections() local 615 nshdrs++; in count_sections() 626 nshdrs += 2; in count_sections() 633 nshdrs += 2; in count_sections() 637 nshdrs += count_debug(fptr); in count_sections() 640 return (nshdrs == 0 ? 0 : nshdrs + 2); in count_sections() 1100 uint_t nphdrs, nshdrs; in Pfgcore() local 1136 nshdrs = count_sections(&pgc); in Pfgcore() 1150 if (nshdrs == 0 && nphdrs >= PN_XNUM) in Pfgcore() 1151 nshdrs = 1; in Pfgcore() [all …]
|
H A D | Psymtab.c | 1581 size_t *nshdrs, Elf_Data **shdata) in build_fake_elf() argument 1590 elf_getshdrnum(elf, nshdrs) == -1 || in build_fake_elf() 1837 size_t nshdrs, shstrndx; in Pbuild_file_symtab() local 1898 if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) == in Pbuild_file_symtab() 1906 if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) == in Pbuild_file_symtab() 1913 elf_getshdrnum(elf, &nshdrs) == -1 || in Pbuild_file_symtab() 1923 if ((elf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) == in Pbuild_file_symtab() 1940 if ((newelf = build_fake_elf(P, fptr, &ehdr, &nshdrs, &shdata)) in Pbuild_file_symtab() 1963 if ((cache = malloc(nshdrs * sizeof (*cache))) == NULL) { in Pbuild_file_symtab() 2005 for (i = 1, cp = cache + 1; i < nshdrs; i++, cp++) { in Pbuild_file_symtab() [all …]
|