/titanic_41/usr/src/cmd/sgs/libelf/common/ |
H A D | getphnum.c | 47 elf_getphdrnum(Elf *elf, size_t *phnum) in elf_getphdrnum() argument 57 *phnum = ehdr.e_phnum; in elf_getphdrnum() 66 *phnum = ehdr.e_phnum; in elf_getphdrnum() 68 *phnum = shdr0.sh_info; in elf_getphdrnum() 74 elf_getphnum(Elf *elf, size_t *phnum) in elf_getphnum() argument 76 return (elf_getphdrnum(elf, phnum) == 0); in elf_getphnum()
|
H A D | gelf.c | 219 size_t phnum; in gelf_getphdr() local 224 if (elf_getphdrnum(elf, &phnum) == -1) in gelf_getphdr() 227 if (phnum <= ndx) { in gelf_getphdr() 266 size_t phnum; in gelf_update_phdr() local 271 if (elf_getphdrnum(elf, &phnum) == -1) in gelf_update_phdr() 274 if (phnum < ndx) { in gelf_update_phdr() 312 gelf_newphdr(Elf *elf, size_t phnum) in gelf_newphdr() argument 321 return ((unsigned long)elf32_newphdr(elf, phnum)); in gelf_newphdr() 323 return ((unsigned long)elf64_newphdr(elf, phnum)); in gelf_newphdr()
|
/titanic_41/usr/src/cmd/tip/ |
H A D | acu.c | 44 char *phnum, string[256]; in connect() local 75 for (phnum = cp; *cp && *cp != '|'; cp++) in connect() 80 if (conflag = (*acu->acu_dialer)(phnum, CU)) { in connect() 81 logent(value(HOST), phnum, acu->acu_name, in connect() 85 logent(value(HOST), phnum, acu->acu_name, in connect() 109 for (phnum = cp; *cp && *cp != '|' && *cp != '\n'; cp++) in connect() 113 if (conflag = (*acu->acu_dialer)(phnum, CU)) { in connect() 114 logent(value(HOST), phnum, acu->acu_name, in connect() 118 logent(value(HOST), phnum, acu->acu_name, in connect()
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | object.c | 240 uint_t phnum; in elf_obj_fini() local 316 for (mnum = 0, phnum = 0; phnum < ehdr->e_phnum; phnum++) { in elf_obj_fini() 317 if (phdr[phnum].p_type != PT_LOAD) in elf_obj_fini() 320 mpp[mnum].mr_addr = (caddr_t)((uintptr_t)phdr[phnum].p_vaddr + in elf_obj_fini() 322 mpp[mnum].mr_msize = phdr[phnum].p_memsz; in elf_obj_fini() 323 mpp[mnum].mr_fsize = phdr[phnum].p_filesz; in elf_obj_fini()
|
/titanic_41/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 92 size_t shstrndx, shnum, phnum; in delete_comment() local 114 if (elf_getphdrnum(elf, &phnum) == -1) { in delete_comment() 300 if (phnum != 0) { in delete_comment() 301 if (gelf_newphdr(telf, phnum) == NULL) { in delete_comment() 306 for (ndx = 0; ndx < (int)phnum; ndx++) { in delete_comment()
|
/titanic_41/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 | Psymtab.c | 106 uint_t phnum; in get_saddrs() local 108 if (read_ehdr32(P, &ehdr, &phnum, ehdr_start) != 0) in get_saddrs() 111 addrs = malloc(sizeof (uintptr_t) * phnum * 2); in get_saddrs() 113 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) { in get_saddrs() 134 uint_t phnum; in get_saddrs() local 136 if (read_ehdr64(P, &ehdr, &phnum, ehdr_start) != 0) in get_saddrs() 139 addrs = malloc(sizeof (uintptr_t) * phnum * 2); in get_saddrs() 141 for (i = 0; i < phnum; i++, a += ehdr.e_phentsize) { in get_saddrs() 1017 read_ehdr32(struct ps_prochandle *P, Elf32_Ehdr *ehdr, uint_t *phnum, in read_ehdr32() argument 1036 if ((*phnum = ehdr->e_phnum) == PN_XNUM) { in read_ehdr32() [all …]
|
H A D | Psymtab_machelf32.c | 211 Ehdr *ehdr, uint_t phnum, Phdr *phdr) in fake_elf64() argument 215 Ehdr *ehdr, uint_t phnum, Phdr *phdr) in fake_elf64() 345 size += phnum * ehdr->e_phentsize; in fake_elf64() 457 ep->e_phnum = phnum; in fake_elf64() 458 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; in fake_elf64() 477 if (Pread(P, &elfdata[ep->e_phoff], phnum * ep->e_phentsize, in fake_elf64() 478 addr + ehdr->e_phoff) != phnum * ep->e_phentsize) { in fake_elf64()
|
H A D | Pidle.c | 160 size_t phnum; in Pgrab_file() local 249 if (elf_getphdrnum(elf, &phnum) == -1) { in Pgrab_file() 254 dprintf("Pgrab_file: program header count = %lu\n", (ulong_t)phnum); in Pgrab_file() 259 for (i = 0; i < phnum; i++) { in Pgrab_file()
|
H A D | Pcore.c | 1691 uint64_t phnum; in core_elf_fdopen() local 1722 phnum = phdr.p_offset - efp->e_hdr.e_ehsize - in core_elf_fdopen() 1724 phnum /= efp->e_hdr.e_phentsize; in core_elf_fdopen() 1726 if (phdr.p_offset != 0 && phnum != efp->e_hdr.e_phnum) { in core_elf_fdopen() 1728 (uint_t)phnum, efp->e_hdr.e_phnum); in core_elf_fdopen() 1739 if (phnum <= INT_MAX && in core_elf_fdopen() 1740 (uint16_t)phnum == efp->e_hdr.e_phnum) { in core_elf_fdopen() 1747 efp->e_hdr.e_phentsize * phnum; in core_elf_fdopen() 1750 efp->e_hdr.e_phnum = (Elf64_Word)phnum; in core_elf_fdopen()
|
/titanic_41/usr/src/cmd/sgs/librtld_db/common/ |
H A D | rd_elf.c | 375 psaddr_t addr, Ehdr *ehdr, uint_t *phnum) in _rd_get_ehdr32() argument 384 if (phnum == NULL) in _rd_get_ehdr32() 388 *phnum = ehdr->e_phnum; in _rd_get_ehdr32() 405 *phnum = shdr.sh_info; in _rd_get_ehdr32() 414 uint_t phnum; in _rd_get_dyns32() local 421 if ((err = _rd_get_ehdr32(rap, addr, &ehdr, &phnum)) != RD_OK) in _rd_get_dyns32() 424 for (i = 0; i < phnum; i++) { in _rd_get_dyns32() 433 if (i == phnum) in _rd_get_dyns32()
|
/titanic_41/usr/src/cmd/sgs/elfdump/common/ |
H A D | fake_shdr.c | 84 size_t phnum; member 426 size_t phnum = fstate->phnum; in map_addr_to_offset() local 428 for (; phnum--; phdr++) { in map_addr_to_offset() 485 size_t phnum = fstate->phnum; in map_offset_to_addr() local 487 for (; phnum--; phdr++) { in map_offset_to_addr() 1137 if (elf_getphdrnum(elf, &fstate.phnum) == -1) { in fake_shdr_cache() 1155 for (ndx = 0; ndx < fstate.phnum; ndx++) { in fake_shdr_cache()
|
H A D | elfdump.c | 498 getphdr(Word phnum, Word *type_arr, Word type_cnt, const char *file, Elf *elf) in getphdr() argument 508 for (cnt = 0; cnt < phnum; phdr++, cnt++) { in getphdr() 855 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind() argument 887 if (phnum) in unwind() 888 uphdr = getphdr(phnum, phdr_types, in unwind() 1684 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, in cap() argument 1696 if (phnum) { in cap() 1704 for (cnt = 0; cnt < phnum; phdr++, cnt++) { in cap() 1767 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) in interp() argument 1781 if (phnum) { in interp() [all …]
|
/titanic_41/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | phdr.c | 274 size_t phnum; /* # of program headers */ in locate_interp() local 283 phnum = obj_state->os_phnum; in locate_interp() 286 for (phndx = 0; phndx < phnum; phndx++) { in locate_interp() 294 if (phndx == phnum) in locate_interp() 514 size_t phnum; /* # of program headers */ in cmd_body_set_interp() local 521 phnum = obj_state->os_phnum; in cmd_body_set_interp() 571 for (j = 0; j < phnum; j++) { in cmd_body_set_interp() 582 if ((j == phnum) && in cmd_body_set_interp()
|
H A D | ehdr.c | 993 Word phnum = (Word) elfedit_atoui(argstate.argv[0], in cmd_body() local 1001 if (phnum >= PN_XNUM) { in cmd_body() 1003 sh_info = phnum; in cmd_body() 1005 e_phnum = phnum; in cmd_body()
|
/titanic_41/usr/src/cmd/sgs/libld/common/ |
H A D | unwind.c | 811 Word phnum = ofl->ofl_nehdr->e_phnum; in ld_unwind_populate_hdr() local 814 for (; phnum-- > 0; phdr++) { in ld_unwind_populate_hdr()
|
/titanic_41/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 324 int phnum = ehdr->e_phnum; in traverse_file() local 394 if (phnum == 0) in traverse_file()
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | kobj.c | 646 int phnum, phsize; in attr_val() local 655 phnum = bootaux[BA_PHNUM].ba_val; in attr_val() 657 for (i = 0; i < phnum; i++) { in attr_val()
|