Searched refs:e_phnum (Results 1 - 25 of 70) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetphnum.c56 if (ehdr.e_phnum != PN_XNUM) {
57 *phnum = ehdr.e_phnum;
66 *phnum = ehdr.e_phnum;
H A Dnewphdr.c109 ((Ehdr*)elf->ed_ehdr)->e_phnum = 0;
120 ((Ehdr*)elf->ed_ehdr)->e_phnum = 0;
131 ((Ehdr*)elf->ed_ehdr)->e_phnum = (Half)count;
H A Dupdate.c181 if (eh->e_phnum != 0) {
186 hi += eh->e_phentsize * eh->e_phnum;
195 * is used to hold an alternative e_shnum, e_shstrndx and e_phnum.
199 * e_phnum may have already been initialized by the caller (for example,
373 if (eh->e_phnum != 0)
378 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi)
549 if (eh->e_phnum != 0) {
563 dst.d_size = eh->e_phnum * eh->e_phentsize;
863 Half e_phnum; local
873 e_phnum
[all...]
H A Dclscook.c304 if (eh->e_phnum == 0)
313 fsz *= eh->e_phnum;
315 msz = _elf_msize(ELF_T_PHDR, work) * eh->e_phnum;
/illumos-gate/usr/src/tools/elfextract/
H A Delfextract.c68 if (eh->e_phnum == 0 || eh->e_phoff == 0) {
79 pname, eh->e_phnum);
86 for (i = 0; i < eh->e_phnum; i++) {
138 if (eh->e_phnum == 0 || eh->e_phoff == 0) {
149 pname, eh->e_phnum);
156 for (i = 0; i < eh->e_phnum; i++) {
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c95 if (eh->e_phnum == 0 || eh->e_phoff == 0)
103 dboot_panic("Failed to get program headers e_phnum = %d",
104 eh->e_phnum);
117 for (i = 0; i < eh->e_phnum; i++) {
/illumos-gate/usr/src/tools/mbh_patch/
H A Dmbh_patch.c71 if ((eh->e_phnum == 0) || (eh->e_phoff == 0)) {
82 "hdrs\n", pname, fname, eh->e_phnum);
105 for (ndx = 0; ndx < eh->e_phnum; ndx++) {
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c118 if ((ehdr.e_phnum != 0) && !(fflag)) {
119 process_phdr(elf, ehdr.e_phnum);
195 if (ehdr.e_phnum != 0) {
196 process_phdr(elf, ehdr.e_phnum);
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h176 Elf32_Half e_phnum; /* Number of program header entries. */ member in struct:__anon2085
193 Elf64_Half e_phnum; /* Number of program header entries. */ member in struct:__anon2086
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c76 * The e_shnum, e_shstrndx and e_phnum entries may have a different
95 if (ehdr->e_phnum == PN_XNUM) {
101 ehdr->e_phentsize, ehdr->e_phnum);
/illumos-gate/usr/src/tools/ctf/cvt/
H A Doutput.c480 if (sehdr.e_phnum != 0) {
482 if (gelf_newphdr(dst, sehdr.e_phnum) == 0)
485 for (i = 0; i < sehdr.e_phnum; i++) {
543 if (changing && sehdr.e_phnum != 0) {
579 if (sehdr.e_phnum != 0)
631 if (changing && sehdr.e_phnum != 0) {
649 if (sehdr.e_phnum != 0) {
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Dfcns.c108 if ((gelf_getehdr(elf_file, &ehdr) == 0) || (ehdr.e_phnum == 0)) {
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c168 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
221 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c168 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
221 for (p = 0, pptr = phdr; p < (int)ehdr->e_phnum; p++,
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c277 if ((ehdr.e_phnum != 0) &&
324 int phnum = ehdr->e_phnum;
363 if (ehdr->e_phnum == 0)
743 if (src_ehdr->e_phnum != 0) {
746 if (gelf_newphdr(dst_elf, src_ehdr->e_phnum) == NULL) {
752 for (x = 0; x < src_ehdr->e_phnum; ++x) {
969 ((src_ehdr->e_phnum == 0) ||
997 if (src_ehdr->e_phnum != 0) {
1044 if (src_ehdr->e_phnum != NULL)
1167 if (src_ehdr->e_phnum !
[all...]
/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 in struct:__anon2184
H A Dboot.c116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0
117 || ((pu.elf->e_phoff + (pu.elf->e_phentsize * pu.elf->e_phnum))
599 for (i = 0; i < pu.elf->e_phnum; i++)
/illumos-gate/usr/src/cmd/sgs/librtld_db/i386/
H A Dplt32_resolution.c83 for (i = 0; i < ehdr.e_phnum; i++) {
/illumos-gate/usr/src/boot/sys/sys/
H A Delf32.h66 Elf32_Half e_phnum; /* Number of program header entries. */ member in struct:__anon407
H A Delf64.h75 Elf64_Half e_phnum; /* Number of program header entries. */ member in struct:__anon424
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c66 EHDR_CMD_T_E_PHNUM = 11, /* ehdr:e_phnum */
506 Word num = ehdr->e_phnum;
998 Half e_phnum; local
1002 e_phnum = PN_XNUM;
1005 e_phnum = phnum;
1009 if (ehdr->e_phnum == e_phnum) {
1012 EC_WORD(ehdr->e_phnum));
1016 EC_WORD(ehdr->e_phnum), e_phnum);
[all...]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c128 size = h.e_phnum * h.e_phentsize;
146 nph = h.e_phnum;
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dobject.c313 if ((mpp = hmpp = calloc(ehdr->e_phnum,
316 for (mnum = 0, phnum = 0; phnum < ehdr->e_phnum; phnum++) {
/illumos-gate/usr/src/lib/libproc/common/
H A DPcore.c1658 efp->e_hdr.e_phnum = (Elf64_Word)e64.e_phnum;
1678 efp->e_hdr.e_phnum = (Elf64_Word)e32.e_phnum;
1693 efp->e_hdr.e_phnum == PN_XNUM) {
1735 if (efp->e_hdr.e_phnum == PN_XNUM && shdr.sh_info != 0) {
1736 efp->e_hdr.e_phnum = shdr.sh_info;
1746 * accidentally truncated the e_phnum field without correctly
1777 if (phdr.p_offset != 0 && phnum != efp->e_hdr.e_phnum) {
1779 (uint_t)phnum, efp->e_hdr.e_phnum);
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c277 for (num = 0, ophdr = iphdr; num != iehdr->e_phnum; num++, ophdr++) {
551 if ((ophdr = elf_newphdr(oelf, iehdr->e_phnum)) == NULL) {
556 for (num = 0; num != iehdr->e_phnum; num++, iphdr++, ophdr++) {

Completed in 228 milliseconds

123