/illumos-gate/usr/src/tools/elfextract/ |
H A D | elfextract.c | 71 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract32() 82 pname, eh->e_phnum); in extract32() 89 for (i = 0; i < eh->e_phnum; i++) { in extract32() 141 if (eh->e_phnum == 0 || eh->e_phoff == 0) { in extract64() 152 pname, eh->e_phnum); in extract64() 159 for (i = 0; i < eh->e_phnum; i++) { in extract64()
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | getphnum.c | 56 if (ehdr.e_phnum != PN_XNUM) { in elf_getphdrnum() 57 *phnum = ehdr.e_phnum; in elf_getphdrnum() 66 *phnum = ehdr.e_phnum; in elf_getphdrnum()
|
H A D | newphdr.c | 107 ((Ehdr*)elf->ed_ehdr)->e_phnum = 0; in elf_newphdr() 118 ((Ehdr*)elf->ed_ehdr)->e_phnum = 0; in elf_newphdr() 129 ((Ehdr*)elf->ed_ehdr)->e_phnum = (Half)count; in elf_newphdr()
|
H A D | update.c | 184 if (eh->e_phnum != 0) { in _elf_upd_lib() 189 hi += eh->e_phentsize * eh->e_phnum; in _elf_upd_lib() 375 if (eh->e_phnum != 0) in _elf_upd_usr() 380 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi) in _elf_upd_usr() 550 if (eh->e_phnum != 0) { in wrt() 564 dst.d_size = eh->e_phnum * eh->e_phentsize; in wrt() 861 Half e_phnum; in _elfxx_swap_wrimage() local 871 e_phnum = eh->e_phnum; in _elfxx_swap_wrimage() 888 if (e_phnum != 0) { in _elfxx_swap_wrimage()
|
H A D | clscook.c | 296 if (eh->e_phnum == 0) in _elf_phdr() 305 fsz *= eh->e_phnum; in _elf_phdr() 307 msz = _elf_msize(ELF_T_PHDR, work) * eh->e_phnum; in _elf_phdr()
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 99 if (eh->e_phnum == 0 || eh->e_phoff == 0) in dboot_elfload64() 108 eh->e_phnum); in dboot_elfload64() 121 for (i = 0; i < eh->e_phnum; i++) { in dboot_elfload64()
|
/illumos-gate/usr/src/cmd/sgs/size/common/ |
H A D | process.c | 118 if ((ehdr.e_phnum != 0) && !(fflag)) { in process() 119 process_phdr(elf, ehdr.e_phnum); in process() 195 if (ehdr.e_phnum != 0) { in process() 196 process_phdr(elf, ehdr.e_phnum); in process()
|
/illumos-gate/usr/src/tools/mbh_patch/ |
H A D | mbh_patch.c | 122 if ((eh->e_phnum == 0) || (eh->e_phoff == 0)) { in patch64() 133 "hdrs\n", pname, fname, eh->e_phnum); in patch64() 180 for (ndx = 0; ndx < eh->e_phnum; ndx++) { in patch64()
|
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 280 if ((ehdr.e_phnum != 0) && in process_file() 327 int phnum = ehdr->e_phnum; in traverse_file() 366 if (ehdr->e_phnum == 0) in traverse_file() 751 if (src_ehdr->e_phnum != 0) { in build_file() 754 if (gelf_newphdr(dst_elf, src_ehdr->e_phnum) == 0) { in build_file() 760 for (x = 0; x < src_ehdr->e_phnum; ++x) { in build_file() 977 ((src_ehdr->e_phnum == 0) || in build_file() 1005 if (src_ehdr->e_phnum != 0) { in build_file() 1052 if (src_ehdr->e_phnum != 0) in build_file() 1175 if (src_ehdr->e_phnum != 0) { in build_file() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dw_elfstructs.h | 71 TYP(e_phnum,2); 89 TYP(e_phnum,2);
|
H A D | dwarf_elfstructs.h | 79 TYP(e_phnum,2); 97 TYP(e_phnum,2);
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | elf.h | 176 Elf32_Half e_phnum; /* Number of program header entries. */ member 193 Elf64_Half e_phnum; /* Number of program header entries. */ member
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 95 if (ehdr->e_phnum == PN_XNUM) { in Elf_ehdr() 101 ehdr->e_phentsize, ehdr->e_phnum); in Elf_ehdr()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 506 Word num = ehdr->e_phnum; in print_ehdr() 998 Half e_phnum; in cmd_body() local 1002 e_phnum = PN_XNUM; in cmd_body() 1005 e_phnum = phnum; in cmd_body() 1009 if (ehdr->e_phnum == e_phnum) { in cmd_body() 1012 EC_WORD(ehdr->e_phnum)); in cmd_body() 1016 EC_WORD(ehdr->e_phnum), e_phnum); in cmd_body() 1018 ehdr->e_phnum = e_phnum; in cmd_body()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 1760 efp->e_hdr.e_phnum = (Elf64_Word)e64.e_phnum; in core_elf_fdopen() 1780 efp->e_hdr.e_phnum = (Elf64_Word)e32.e_phnum; in core_elf_fdopen() 1795 efp->e_hdr.e_phnum == PN_XNUM) { in core_elf_fdopen() 1837 if (efp->e_hdr.e_phnum == PN_XNUM && shdr.sh_info != 0) { in core_elf_fdopen() 1838 efp->e_hdr.e_phnum = shdr.sh_info; in core_elf_fdopen() 1879 if (phdr.p_offset != 0 && phnum != efp->e_hdr.e_phnum) { in core_elf_fdopen() 1881 (uint_t)phnum, efp->e_hdr.e_phnum); in core_elf_fdopen() 1893 (uint16_t)phnum == efp->e_hdr.e_phnum) { in core_elf_fdopen() 1897 (uint_t)efp->e_hdr.e_phnum) { in core_elf_fdopen() 1903 efp->e_hdr.e_phnum = (Elf64_Word)phnum; in core_elf_fdopen() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/crt/ |
H A D | _rtld.c | 168 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++, in __rtld() 221 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++, in __rtld()
|
/illumos-gate/usr/src/lib/libc/sparc/crt/ |
H A D | _rtld.c | 168 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++, in __rtld() 221 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++, in __rtld()
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 128 size = h.e_phnum * h.e_phentsize; in __fex_read_syms() 146 nph = h.e_phnum; in __fex_read_syms()
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 283 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0) in read_elf32() 294 nphdrs = elfhdrp->e_phnum; in read_elf32() 538 AUX(av, AT_PHNUM, elfhdrp->e_phnum); in read_elf32() 657 if (elfhdrp->e_phnum == 0 || elfhdrp->e_phoff == 0) in read_elf64() 667 nphdrs = elfhdrp->e_phnum; in read_elf64() 923 AUX64(av, AT_PHNUM, elfhdrp->e_phnum); in read_elf64()
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | object.c | 311 if ((mpp = hmpp = calloc(ehdr->e_phnum, in elf_obj_fini() 314 for (mnum = 0, phnum = 0; phnum < ehdr->e_phnum; phnum++) { in elf_obj_fini()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mlsetup.c | 412 bootaux[BA_PHNUM].ba_val = ehdr->e_phnum; 418 for (i = 0; i < ehdr->e_phnum; i++) {
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | fcns.c | 111 if ((gelf_getehdr(elf_file, &ehdr) == 0) || (ehdr.e_phnum == 0)) { in dump_exec_header()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | i386-elf.h | 79 Elf32_Half e_phnum; /* number of entries in program header */ member
|
H A D | boot.c | 116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0 in load_image() 117 || ((pu.elf->e_phoff + (pu.elf->e_phentsize * pu.elf->e_phnum)) in load_image() 599 for (i = 0; i < pu.elf->e_phnum; i++) in load_image()
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 277 for (num = 0, ophdr = iphdr; num != iehdr->e_phnum; num++, ophdr++) { in rt_dldump() 551 if ((ophdr = elf_newphdr(oelf, iehdr->e_phnum)) == NULL) { in rt_dldump() 556 for (num = 0; num != iehdr->e_phnum; num++, iphdr++, ophdr++) { in rt_dldump()
|