/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | getphnum.c | 47 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 D | gelf.c | 219 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));
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf.h | 37 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 D | Pidle.c | 161 size_t phnum; local 250 if (elf_getphdrnum(elf, &phnum) == -1) { 255 dprintf("Pgrab_file: program header count = %lu\n", (ulong_t)phnum); 260 for (i = 0; i < phnum; i++) {
|
H A D | Psymtab.c | 106 uint_t phnum; local 108 if (read_ehdr32(P, &ehdr, &phnum, ehdr_start) != 0) 111 addrs = malloc(sizeof (uintptr_t) * phnum * 2); 113 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) { 134 uint_t phnum; local 136 if (read_ehdr64(P, &ehdr, &phnum, ehdr_start) != 0) 139 addrs = malloc(sizeof (uintptr_t) * phnum * 2); 141 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) { 1017 read_ehdr32(struct ps_prochandle *P, Elf32_Ehdr *ehdr, uint_t *phnum, argument 1036 if ((*phnum 1052 read_dynamic_phdr32(struct ps_prochandle *P, const Elf32_Ehdr *ehdr, uint_t phnum, Elf32_Phdr *phdr, uintptr_t addr) argument 1071 read_ehdr64(struct ps_prochandle *P, Elf64_Ehdr *ehdr, uint_t *phnum, uintptr_t addr) argument 1106 read_dynamic_phdr64(struct ps_prochandle *P, const Elf64_Ehdr *ehdr, uint_t phnum, Elf64_Phdr *phdr, uintptr_t addr) argument 1226 uint_t phnum, i; local 1261 uint_t phnum, i; local 1307 uint_t phnum; local [all...] |
H A D | Psymtab_machelf32.c | 215 Ehdr *ehdr, uint_t phnum, Phdr *phdr) 219 Ehdr *ehdr, uint_t phnum, Phdr *phdr) 350 size += phnum * ehdr->e_phentsize; 459 ep->e_phnum = phnum; 460 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; 479 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize, 480 addr + ehdr->e_phoff) != phnum * ep->e_phentsize) { 214 fake_elf64(struct ps_prochandle *P, file_info_t *fptr, uintptr_t addr, Ehdr *ehdr, uint_t phnum, Phdr *phdr) argument
|
H A D | Pcore.c | 1742 uint64_t phnum; local 1773 phnum = phdr.p_offset - efp->e_hdr.e_ehsize - 1775 phnum /= efp->e_hdr.e_phentsize; 1777 if (phdr.p_offset != 0 && phnum != efp->e_hdr.e_phnum) { 1779 (uint_t)phnum, efp->e_hdr.e_phnum); 1790 if (phnum <= INT_MAX && 1791 (uint16_t)phnum == efp->e_hdr.e_phnum) { 1798 efp->e_hdr.e_phentsize * phnum; 1801 efp->e_hdr.e_phnum = (Elf64_Word)phnum;
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | acu.c | 44 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
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | object.c | 240 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;
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 92 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++) {
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | fake_shdr.c | 84 size_t phnum; member in struct:__anon1427 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 D | elfdump.c | 508 getphdr(Word phnum, Word *type_arr, Word type_cnt, const char *file, Elf *elf) argument 518 for (cnt = 0; cnt < phnum; phdr++, cnt++) { 865 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, argument 897 if (phnum) 898 uphdr = getphdr(phnum, phdr_types, 1695 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, argument 1707 if (phnum) { 1715 for (cnt = 0; cnt < phnum; phdr++, cnt++) { 1778 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) argument 1792 if (phnum) { 4893 size_t ndx, shstrndx, shnum, phnum; local [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | phdr.c | 274 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 D | ehdr.c | 993 Word phnum = (Word) elfedit_atoui(argstate.argv[0], local 1001 if (phnum >= PN_XNUM) { 1003 sh_info = phnum; 1005 e_phnum = phnum;
|
/illumos-gate/usr/src/cmd/sgs/librtld_db/common/ |
H A D | rd_elf.c | 375 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
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | unwind.c | 811 Word phnum = ofl->ofl_nehdr->e_phnum; local 814 for (; phnum-- > 0; phdr++) {
|
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 324 int phnum = ehdr->e_phnum; local 394 if (phnum == 0)
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 646 int phnum, phsize; local 655 phnum = bootaux[BA_PHNUM].ba_val; 657 for (i = 0; i < phnum; i++) {
|