Searched refs:e_phnum (Results 1 - 25 of 51) 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:__anon14769
62 Elf64_Half e_phnum; /* Program header table entry count */ member in struct:__anon14770
/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/valgrind/coregrind/m_ume/
H A Delf.c141 phsz = sizeof(ESZ(Phdr)) * e->e.e_phnum;
167 for (i = 0; i < e->e.e_phnum; i++) {
183 for (i = 0; i < e->e.e_phnum; i++) {
360 info->phnum = e->e.e_phnum;
365 for (i = 0; i < e->e.e_phnum; i++) {
419 for (j = 0; j < interp->e.e_phnum; j++) {
/external/libunwind/src/
H A Delfxx.c253 GET_EHDR_FIELD(ei, ehdr, e_phnum, true);
257 for (i = 0; i < ehdr->e_phnum; ++i) {
397 for (i = 0; i < ehdr->e_phnum; ++i) {
411 for (i = 0; i < ehdr->e_phnum; ++i) {
621 for (i = 0; i < ehdr->e_phnum; ++i) {
630 GET_EHDR_FIELD(ei, &ehdr, e_phnum, false);
634 for (i = 0; i < ehdr.e_phnum; ++i) {
/external/libunwind/src/dwarf/
H A DGfind_unwind_table.c131 GET_EHDR_FIELD(ei, &ehdr, e_phnum, false);
144 for (i = 0; i < ehdr.e_phnum; ++i) {
277 for (i = 0; i < ehdr->e_phnum; ++i)
/external/google-breakpad/src/common/linux/
H A Delf_core_dump.cc146 return header ? header->e_phnum : 0;
H A Delfutils.cc98 for (int i = 0; i < elf_header->e_phnum; ++i) {
/external/libunwind/src/ia64/
H A DGfind_unwind_table.c109 for (i = 0; i < ehdr->e_phnum; ++i)
/external/elfutils/libdwfl/
H A Delf-from-memory.c138 phnum = ehdr.e32.e_phnum;
150 phnum = ehdr.e64.e_phnum;
/external/kernel-headers/original/uapi/linux/
H A Delf.h46 * section header at index 0, and PN_XNUM is set to e_phnum
214 Elf32_Half e_phnum; member in struct:elf32_hdr
231 Elf64_Half e_phnum; member in struct:elf64_hdr
/external/libunwind/src/coredump/
H A D_UCD_create.c152 unsigned size = ui->phdrs_count = (_64bits ? elf_header64.e_phnum : elf_header32.e_phnum);

Completed in 571 milliseconds

123