Home
last modified time | relevance | path

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

123

/external/linux-tools-perf/src/tools/perf/util/
Dsymbol-minimal.c117 ehdr.e_phnum = bswap_16(ehdr.e_phnum); in filename__read_build_id()
120 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id()
129 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id()
166 ehdr.e_phnum = bswap_16(ehdr.e_phnum); in filename__read_build_id()
169 buf_size = ehdr.e_phentsize * ehdr.e_phnum; in filename__read_build_id()
178 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { in filename__read_build_id()
/external/elfutils/src/libelf/
Dgelf_update_phdr.c84 if (ndx >= elf->state.elf32.ehdr->e_phnum in gelf_update_phdr()
85 && (elf->state.elf32.ehdr->e_phnum != PN_XNUM in gelf_update_phdr()
121 if (ndx >= elf->state.elf64.ehdr->e_phnum in gelf_update_phdr()
122 && (elf->state.elf64.ehdr->e_phnum != PN_XNUM in gelf_update_phdr()
Dgelf_getphdr.c83 if (ndx >= elf->state.elf32.ehdr->e_phnum
84 && (elf->state.elf32.ehdr->e_phnum != PN_XNUM
125 if (ndx >= elf->state.elf64.ehdr->e_phnum
126 && (elf->state.elf64.ehdr->e_phnum != PN_XNUM
Delf32_newphdr.c97 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
113 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
145 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = PN_XNUM;
149 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
Delf_getphdrnum.c53 ? elf->state.elf32.ehdr->e_phnum
54 : elf->state.elf64.ehdr->e_phnum);
Dgelf_update_ehdr.c90 COPY (e_phnum); in gelf_update_ehdr()
Dgelf_getehdr.c84 COPY (e_phnum);
/external/elfutils/src/tests/
Dupdate2.c77 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
115 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
116 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
137 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Decp.c57 if (ehdr->e_phnum > 0) in main()
61 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) in main()
65 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) in main()
Dupdate3.c86 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
164 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
165 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
192 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dnewfile.c46 ehdr->e_phnum, in print_ehdr()
125 ZERO_TEST (e_phnum); in main()
157 VALUE_TEST (e_phnum, 10); in main()
Dupdate4.c90 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
316 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
317 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
344 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dupdate1.c76 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
114 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dalldts.c232 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
233 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
Dshowptable.c76 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt) in main()
/external/valgrind/coregrind/m_ume/
Delf.c136 phsz = sizeof(ESZ(Phdr)) * e->e.e_phnum; in readelf()
162 for (i = 0; i < e->e.e_phnum; i++) { in mapelf()
178 for (i = 0; i < e->e.e_phnum; i++) { in mapelf()
347 info->phnum = e->e.e_phnum; in VG_()
352 for (i = 0; i < e->e.e_phnum; i++) { in VG_()
391 for (j = 0; j < interp->e.e_phnum; j++) { in VG_()
/external/libunwind/src/
Delfxx.c251 GET_EHDR_FIELD(ei, ehdr, e_phnum, true); in elf_w()
255 for (i = 0; i < ehdr->e_phnum; ++i) { in elf_w()
395 for (i = 0; i < ehdr->e_phnum; ++i) { in elf_w()
605 for (i = 0; i < ehdr->e_phnum; ++i) { in elf_w()
614 GET_EHDR_FIELD(ei, &ehdr, e_phnum, false); in elf_w()
618 for (i = 0; i < ehdr.e_phnum; ++i) { in elf_w()
/external/kernel-headers/original/uapi/linux/
Delf.h214 Elf32_Half e_phnum; member
231 Elf64_Half e_phnum; member
/external/libunwind/src/dwarf/
DGfind_unwind_table.c131 GET_EHDR_FIELD(ei, &ehdr, e_phnum, false); in dwarf_find_unwind_table_memory()
145 for (i = 0; i < ehdr.e_phnum; ++i) { in dwarf_find_unwind_table_memory()
278 for (i = 0; i < ehdr->e_phnum; ++i) in dwarf_find_unwind_table()
/external/elfutils/src/libdwfl/
Delf-from-memory.c132 phnum = ehdr.e32.e_phnum; in elf_from_remote_memory()
144 phnum = ehdr.e64.e_phnum; in elf_from_remote_memory()
/external/libunwind/src/coredump/
D_UCD_create.c152 unsigned size = ui->phdrs_count = (_64bits ? elf_header64.e_phnum : elf_header32.e_phnum); in _UCD_create()
/external/lldb/source/Plugins/ObjectFile/ELF/
DObjectFileELF.cpp643 if (m_header.e_phnum == 0) in ParseProgramHeaders()
646 m_program_headers.resize(m_header.e_phnum); in ParseProgramHeaders()
647 if (m_program_headers.size() != m_header.e_phnum) in ParseProgramHeaders()
650 const size_t ph_size = m_header.e_phnum * m_header.e_phentsize; in ParseProgramHeaders()
658 for (idx = 0, offset = 0; idx < m_header.e_phnum; ++idx) in ParseProgramHeaders()
1567 s->Printf("e_phnum = 0x%4.4x\n", header.e_phnum); in DumpELFHeader()
DELFHeader.h71 elf_half e_phnum; ///< Number of program header entries. member
/external/libunwind/src/ia64/
DGfind_unwind_table.c109 for (i = 0; i < ehdr->e_phnum; ++i) in ia64_find_unwind_table()
/external/google-breakpad/src/common/linux/
Delfutils.cc98 for (int i = 0; i < elf_header->e_phnum; ++i) { in FindElfClassSegment()

123