Home
last modified time | relevance | path

Searched refs:nphdrs (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c194 uint_t nshdrs, shstrndx, nphdrs; in mapexec_brand() local
212 &nphdrs)) != 0 || in mapexec_brand()
213 (error = getelfphdr(vp, CRED(), ehdr, nphdrs, &phdrbase, in mapexec_brand()
219 if ((len = elfsize(ehdr, nphdrs, phdrbase, &lddata)) == 0) { in mapexec_brand()
227 if (error = mapelfexec(vp, ehdr, nphdrs, phdrbase, &uphdr, &dynphdr, in mapexec_brand()
309 uint_t nshdrs, shstrndx, nphdrs; in elfexec() local
327 &nphdrs)) != 0 || in elfexec()
328 (error = getelfphdr(vp, CRED(), ehdrp, nphdrs, &phdrbase, in elfexec()
392 for (i = nphdrs; i > 0; i--) { in elfexec()
614 len = elfsize(ehdrp, nphdrs, phdrbase, NULL); in elfexec()
[all …]
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c258 int nphdrs, phdrsize; in read_elf32() local
294 nphdrs = elfhdrp->e_phnum; in read_elf32()
295 phdrsize = nphdrs * elfhdrp->e_phentsize; in read_elf32()
311 for (i = 0; i < nphdrs; i++) { in read_elf32()
371 for (i = 0; i < nphdrs; i++) { in read_elf32()
631 int nphdrs, phdrsize; in read_elf64() local
667 nphdrs = elfhdrp->e_phnum; in read_elf64()
668 phdrsize = nphdrs * elfhdrp->e_phentsize; in read_elf64()
685 for (i = 0; i < nphdrs; i++) { in read_elf64()
746 for (i = 0; i < nphdrs; i++) { in read_elf64()
/illumos-gate/usr/src/lib/libproc/common/
H A DPgcore.c1100 uint_t nphdrs, nshdrs; in Pfgcore() local
1135 nphdrs = 2 + P->map_count; in Pfgcore()
1150 if (nshdrs == 0 && nphdrs >= PN_XNUM) in Pfgcore()
1181 if (nphdrs >= PN_XNUM) in Pfgcore()
1184 ehdr.e_phnum = (unsigned short)nphdrs; in Pfgcore()
1201 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
1210 ehdr.e_phentsize * nphdrs + in Pfgcore()
1239 if (nphdrs >= PN_XNUM) in Pfgcore()
1242 ehdr.e_phnum = (unsigned short)nphdrs; in Pfgcore()
1259 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phentsize * nphdrs; in Pfgcore()
[all …]
H A DPcore.c1982 size_t nphdrs; in core_find_text() local
1984 if (elf_getphdrnum(elf, &nphdrs) == -1) in core_find_text()
1987 for (i = 0; i < nphdrs; i++) { in core_find_text()
2010 size_t nphdrs; in core_find_data() local
2019 elf_getphdrnum(elf, &nphdrs) == -1) in core_find_data()
2022 for (i = 0; i < nphdrs; i++) { in core_find_data()
/illumos-gate/usr/src/uts/common/os/
H A Dmmapobj.c1302 calc_loadable(Ehdr *ehdrp, caddr_t phdrbase, int nphdrs, size_t *len, in calc_loadable() argument
1351 for (i = 0; i < nphdrs; i++) { in calc_loadable()
1535 process_phdrs(Ehdr *ehdrp, caddr_t phdrbase, int nphdrs, mmapobj_result_t *mrp, in process_phdrs() argument
1632 ret = calc_loadable(ehdrp, phdrbase, nphdrs, &len, in process_phdrs()
1773 for (i = 0; i < nphdrs; i++) { in process_phdrs()
1928 int nphdrs; in doelfwork() local
1980 nphdrs = e32hdr->e_phnum; in doelfwork()
1990 nphdrs = e64hdr->e_phnum; in doelfwork()
2008 if (nphdrs == PN_XNUM) { in doelfwork()
2013 phsizep = nphdrs * phentsize; in doelfwork()
[all …]