Searched refs:phnum (Results 1 - 18 of 18) sorted by relevance

/opensolaris-onvv-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetphnum.c47 elf_getphdrnum(Elf *elf, size_t *phnum) argument
57 *phnum = ehdr.e_phnum;
66 *phnum = ehdr.e_phnum;
68 *phnum = shdr0.sh_info;
74 elf_getphnum(Elf *elf, size_t *phnum) argument
76 return (elf_getphdrnum(elf, phnum) == 0);
H A Dgelf.c219 size_t phnum; local
224 if (elf_getphdrnum(elf, &phnum) == -1)
227 if (phnum <= ndx) {
266 size_t phnum; local
271 if (elf_getphdrnum(elf, &phnum) == -1)
274 if (phnum < ndx) {
312 gelf_newphdr(Elf *elf, size_t phnum) argument
321 return ((unsigned long)elf32_newphdr(elf, phnum));
323 return ((unsigned long)elf64_newphdr(elf, phnum));
/opensolaris-onvv-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf.h37 uintptr_t addr, Elf32_Ehdr *ehdr, uint_t phnum, Elf32_Phdr *phdr);
40 uintptr_t addr, Elf64_Ehdr *ehdr, uint_t phnum, Elf64_Phdr *phdr);
H A DPidle.c115 size_t phnum; local
204 if (elf_getphdrnum(elf, &phnum) == -1) {
209 dprintf("Pgrab_file: program header count = %lu\n", (ulong_t)phnum);
214 for (i = 0; i < phnum; i++) {
H A DPsymtab.c105 uint_t phnum; local
107 if (read_ehdr32(P, &ehdr, &phnum, ehdr_start) != 0)
110 addrs = malloc(sizeof (uintptr_t) * phnum * 2);
112 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) {
133 uint_t phnum; local
135 if (read_ehdr64(P, &ehdr, &phnum, ehdr_start) != 0)
138 addrs = malloc(sizeof (uintptr_t) * phnum * 2);
140 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) {
1062 read_ehdr32(struct ps_prochandle *P, Elf32_Ehdr *ehdr, uint_t *phnum, argument
1081 if ((*phnum
1097 read_dynamic_phdr32(struct ps_prochandle *P, const Elf32_Ehdr *ehdr, uint_t phnum, Elf32_Phdr *phdr, uintptr_t addr) argument
1116 read_ehdr64(struct ps_prochandle *P, Elf64_Ehdr *ehdr, uint_t *phnum, uintptr_t addr) argument
1151 read_dynamic_phdr64(struct ps_prochandle *P, const Elf64_Ehdr *ehdr, uint_t phnum, Elf64_Phdr *phdr, uintptr_t addr) argument
1271 uint_t phnum, i; local
1306 uint_t phnum, i; local
1352 uint_t phnum; local
[all...]
H A DPsymtab_machelf32.c211 Ehdr *ehdr, uint_t phnum, Phdr *phdr)
215 Ehdr *ehdr, uint_t phnum, Phdr *phdr)
345 size += phnum * ehdr->e_phentsize;
452 ep->e_phnum = phnum;
453 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize;
472 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize,
473 addr + ehdr->e_phoff) != phnum * ep->e_phentsize) {
210 fake_elf64(struct ps_prochandle *P, file_info_t *fptr, uintptr_t addr, Ehdr *ehdr, uint_t phnum, Phdr *phdr) argument
H A DPcore.c1156 uint64_t phnum; local
1187 phnum = phdr.p_offset - efp->e_hdr.e_ehsize -
1189 phnum /= efp->e_hdr.e_phentsize;
1191 if (phdr.p_offset != 0 && phnum != efp->e_hdr.e_phnum) {
1193 (uint_t)phnum, efp->e_hdr.e_phnum);
1204 if (phnum <= INT_MAX &&
1205 (uint16_t)phnum == efp->e_hdr.e_phnum) {
1212 efp->e_hdr.e_phentsize * phnum;
1215 efp->e_hdr.e_phnum = (Elf64_Word)phnum;
/opensolaris-onvv-gate/usr/src/cmd/tip/
H A Dacu.c44 char *phnum, string[256]; local
75 for (phnum = cp; *cp && *cp != '|'; cp++)
80 if (conflag = (*acu->acu_dialer)(phnum, CU)) {
81 logent(value(HOST), phnum, acu->acu_name, local
85 logent(value(HOST), phnum, acu->acu_name, local
109 for (phnum = cp; *cp && *cp != '|' && *cp != '\n'; cp++)
113 if (conflag = (*acu->acu_dialer)(phnum, CU)) {
114 logent(value(HOST), phnum, acu->acu_name, local
118 logent(value(HOST), phnum, acu->acu_name, local
/opensolaris-onvv-gate/usr/src/cmd/sgs/rtld/common/
H A Dobject.c240 uint_t phnum; local
316 for (mnum = 0, phnum = 0; phnum < ehdr->e_phnum; phnum++) {
317 if (phdr[phnum].p_type != PT_LOAD)
320 mpp[mnum].mr_addr = (caddr_t)((uintptr_t)phdr[phnum].p_vaddr +
322 mpp[mnum].mr_msize = phdr[phnum].p_memsz;
323 mpp[mnum].mr_fsize = phdr[phnum].p_filesz;
/opensolaris-onvv-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c92 size_t shstrndx, shnum, phnum; local
114 if (elf_getphdrnum(elf, &phnum) == -1) {
300 if (phnum != 0) {
301 if (gelf_newphdr(telf, phnum) == NULL) {
306 for (ndx = 0; ndx < (int)phnum; ndx++) {
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfdump/common/
H A Dfake_shdr.c84 size_t phnum; member in struct:__anon1586
426 size_t phnum = fstate->phnum; local
428 for (; phnum--; phdr++) {
485 size_t phnum = fstate->phnum; local
487 for (; phnum--; phdr++) {
1137 if (elf_getphdrnum(elf, &fstate.phnum) == -1) {
1155 for (ndx = 0; ndx < fstate.phnum; ndx++) {
H A Delfdump.c498 getphdr(Word phnum, Word *type_arr, Word type_cnt, const char *file, Elf *elf) argument
508 for (cnt = 0; cnt < phnum; phdr++, cnt++) {
786 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, argument
818 if (phnum)
819 uphdr = getphdr(phnum, phdr_types,
1615 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, argument
1627 if (phnum) {
1635 for (cnt = 0; cnt < phnum; phdr++, cnt++) {
1698 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) argument
1712 if (phnum) {
4729 size_t ndx, shstrndx, shnum, phnum; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dphdr.c274 size_t phnum; /* # of program headers */ local
283 phnum = obj_state->os_phnum;
286 for (phndx = 0; phndx < phnum; phndx++) {
294 if (phndx == phnum)
514 size_t phnum; /* # of program headers */ local
521 phnum = obj_state->os_phnum;
571 for (j = 0; j < phnum; j++) {
582 if ((j == phnum) &&
H A Dehdr.c993 Word phnum = (Word) elfedit_atoui(argstate.argv[0], local
1001 if (phnum >= PN_XNUM) {
1003 sh_info = phnum;
1005 e_phnum = phnum;
/opensolaris-onvv-gate/usr/src/cmd/sgs/librtld_db/common/
H A Drd_elf.c375 psaddr_t addr, Ehdr *ehdr, uint_t *phnum)
384 if (phnum == NULL)
388 *phnum = ehdr->e_phnum;
405 *phnum = shdr.sh_info;
414 uint_t phnum; local
421 if ((err = _rd_get_ehdr32(rap, addr, &ehdr, &phnum)) != RD_OK)
424 for (i = 0; i < phnum; i++) {
433 if (i == phnum)
374 _rd_get_ehdr32(struct rd_agent *rap, psaddr_t addr, Ehdr *ehdr, uint_t *phnum) argument
/opensolaris-onvv-gate/usr/src/cmd/sgs/libld/common/
H A Dunwind.c746 Word phnum = ofl->ofl_nehdr->e_phnum; local
749 for (; phnum-- > 0; phdr++) {
/opensolaris-onvv-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c324 int phnum = ehdr->e_phnum; local
394 if (phnum == 0)
/opensolaris-onvv-gate/usr/src/uts/common/krtld/
H A Dkobj.c642 int phnum, phsize; local
651 phnum = bootaux[BA_PHNUM].ba_val;
653 for (i = 0; i < phnum; i++) {

Completed in 199 milliseconds