Home
last modified time | relevance | path

Searched refs:e_phnum (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/tools/elfextract/
H A Delfextract.c71 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 Dgetphnum.c56 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 Dnewphdr.c107 ((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 Dupdate.c184 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 Dclscook.c296 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 Ddboot_elfload.c99 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 Dprocess.c118 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 Dmbh_patch.c122 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 Dfile.c280 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()
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()
1253 for (i = 0; i < ehdr->e_phnum; i++) { in build_segment_table()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h71 TYP(e_phnum,2);
89 TYP(e_phnum,2);
H A Ddwarf_elfstructs.h79 TYP(e_phnum,2);
97 TYP(e_phnum,2);
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h176 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 Delf.c95 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 Dehdr.c506 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/libc/i386/crt/
H A D_rtld.c168 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.c168 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/libproc/common/
H A DPcore.c1726 efp->e_hdr.e_phnum = (Elf64_Word)e64.e_phnum; in core_elf_fdopen()
1746 efp->e_hdr.e_phnum = (Elf64_Word)e32.e_phnum; in core_elf_fdopen()
1761 efp->e_hdr.e_phnum == PN_XNUM) { in core_elf_fdopen()
1803 if (efp->e_hdr.e_phnum == PN_XNUM && shdr.sh_info != 0) { in core_elf_fdopen()
1804 efp->e_hdr.e_phnum = shdr.sh_info; in core_elf_fdopen()
1845 if (phdr.p_offset != 0 && phnum != efp->e_hdr.e_phnum) { in core_elf_fdopen()
1847 (uint_t)phnum, efp->e_hdr.e_phnum); in core_elf_fdopen()
1859 (uint16_t)phnum == efp->e_hdr.e_phnum) { in core_elf_fdopen()
1863 (uint_t)efp->e_hdr.e_phnum) { in core_elf_fdopen()
1869 efp->e_hdr.e_phnum = (Elf64_Word)phnum; in core_elf_fdopen()
[all …]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c128 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 Dreadfile.c283 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/uts/sun4/os/
H A Dmlsetup.c412 bootaux[BA_PHNUM].ba_val = ehdr->e_phnum;
418 for (i = 0; i < ehdr->e_phnum; i++) {
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dobject.c311 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/cmd/sgs/dump/common/
H A Dfcns.c111 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 Di386-elf.h79 Elf32_Half e_phnum; /* number of entries in program header */ member
H A Dboot.c116 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 Ddldump.c277 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()

123