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

123

/external/minijail/
H A Delfparse.c31 pHeader->e_phnum = le16toh(pHeader->e_phnum); \
35 pHeader->e_phnum = be16toh(pHeader->e_phnum); \
43 for (i = 0; i < pHeader->e_phnum; i++) { \
H A Delfparse.h44 Elf32_Half e_phnum; /* Program header table entry count */ member in struct:__anon16092
62 Elf64_Half e_phnum; /* Program header table entry count */ member in struct:__anon16093
/external/elfutils/tests/
H A Decp.c61 if (ehdr->e_phnum > 0)
65 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0)
69 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt)
H A Dnewfile.c46 ehdr->e_phnum,
125 ZERO_TEST (e_phnum);
157 VALUE_TEST (e_phnum, 10);
H A Delfshphehdr.c71 check ("e_phnum == 0", ehdr.e_phnum == 0);
98 check ("e_phnum == 0", ehdr.e_phnum == 0);
120 ehdr.e_shoff = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize;
138 check ("e_phnum == 1", ehdr.e_phnum == 1);
H A Dupdate2.c77 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
115 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
116 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
137 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
H A Dupdate3.c86 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
164 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
165 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
192 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
H A Dupdate1.c76 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
114 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
H A Dupdate4.c90 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
316 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
317 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
344 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
H A Dshowptable.c76 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
H A Dalldts.c232 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
233 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
/external/elfutils/libelf/
H A Dgelf_update_phdr.c84 if (ndx >= elf->state.elf32.ehdr->e_phnum
85 && (elf->state.elf32.ehdr->e_phnum != PN_XNUM
121 if (ndx >= elf->state.elf64.ehdr->e_phnum
122 && (elf->state.elf64.ehdr->e_phnum != PN_XNUM
H A Delf_getphdrnum.c52 ? elf->state.elf32.ehdr->e_phnum
53 : elf->state.elf64.ehdr->e_phnum);
H A Delf32_newphdr.c94 /* Set the `e_phnum' member to the new value. */
95 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
111 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
153 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = PN_XNUM;
156 /* Set the `e_phnum' member to the new value. */
157 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
H A Dgelf_update_ehdr.c90 COPY (e_phnum);
H A Dgelf_getehdr.c83 COPY (e_phnum);
/external/syslinux/com32/lib/sys/module/i386/
H A Delf_module.c48 pht = malloc(elf_hdr->e_phnum * elf_hdr->e_phentsize);
52 image_read(pht, elf_hdr->e_phnum * elf_hdr->e_phentsize, module);
55 for (i=0; i < elf_hdr->e_phnum; i++) {
112 for (i = 0; i < elf_hdr->e_phnum; i++) {
/external/syslinux/com32/lib/sys/module/x86_64/
H A Delf_module.c48 pht = malloc(elf_hdr->e_phnum * elf_hdr->e_phentsize);
52 image_read(pht, elf_hdr->e_phnum * elf_hdr->e_phentsize, module);
55 for (i=0; i < elf_hdr->e_phnum; i++) {
112 for (i = 0; i < elf_hdr->e_phnum; i++) {
/external/syslinux/gpxe/src/include/
H A Delf.h182 Elf32_Half e_phnum; /* Number of program header entries. */ member in struct:__anon22076
199 Elf64_Half e_phnum; /* Number of program header entries. */ member in struct:__anon22077
/external/syslinux/com32/include/sys/
H A Delf32.h72 Elf32_Half e_phnum; member in struct:elf32_hdr
H A Delf64.h72 Elf64_Half e_phnum; member in struct:elf64_hdr
/external/syslinux/com32/modules/
H A Delf.c112 if (!eh->e_phnum)
115 if (eh->e_phoff + eh->e_phentsize * eh->e_phnum > len)
128 for (i = 0; i < eh->e_phnum; i++) {
/external/valgrind/coregrind/m_ume/
H A Delf.c377 phsz = sizeof(ESZ(Phdr)) * e->e.e_phnum;
403 for (i = 0; i < e->e.e_phnum; i++) {
419 for (i = 0; i < e->e.e_phnum; i++) {
600 info->phnum = e->e.e_phnum;
605 for (i = 0; i < e->e.e_phnum; i++) {
662 for (j = 0; j < interp->e.e_phnum; j++) {
/external/syslinux/com32/mboot/
H A Dmap.c150 !eh->e_phnum || eh->e_phoff + eh->e_phentsize * eh->e_phnum > len)
169 for (i = 0; i < eh->e_phnum; i++) {
/external/syslinux/gpxe/src/image/
H A Delf.c142 for ( phoff = ehdr.e_phoff , phnum = ehdr.e_phnum ; phnum ;

Completed in 615 milliseconds

123