Home
last modified time | relevance | path

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

12

/external/elfutils/tests/
Dupdate2.c84 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
122 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
123 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
144 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Decp.c65 if (ehdr->e_phnum > 0) in main()
69 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) in main()
73 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) in main()
Dupdate3.c93 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
171 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
172 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
199 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dnewfile.c54 ehdr->e_phnum, in print_ehdr()
133 ZERO_TEST (e_phnum); in main()
165 VALUE_TEST (e_phnum, 10); in main()
Dupdate1.c83 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
121 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dupdate4.c98 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
324 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
325 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
352 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dshowptable.c84 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt) in main()
/external/elfutils/libelf/
Delf32_newphdr.c112 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
124 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
141 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
Dgelf_update_phdr.c104 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum)) in gelf_update_phdr()
137 if (unlikely (ndx >= elf->state.elf64.ehdr->e_phnum)) in gelf_update_phdr()
Dgelf_getphdr.c103 if (ndx >= elf->state.elf32.ehdr->e_phnum)
141 if (ndx >= elf->state.elf64.ehdr->e_phnum)
Delf32_updatefile.c195 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
200 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
210 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum)); in __elfw2()
552 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
561 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
568 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum; in __elfw2()
590 + sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
Dgelf_update_ehdr.c111 COPY (e_phnum); in gelf_update_ehdr()
Dgelf_getehdr.c105 COPY (e_phnum);
Delf32_updatenull.c173 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum)); in __elfw2()
182 size += elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum); in __elfw2()
/external/valgrind/main/coregrind/m_ume/
Delf.c138 phsz = sizeof(ESZ(Phdr)) * e->e.e_phnum; in readelf()
165 for (i = 0; i < e->e.e_phnum; i++) { in mapelf()
181 for (i = 0; i < e->e.e_phnum; i++) { in mapelf()
346 info->phnum = e->e.e_phnum;
350 for (i = 0; i < e->e.e_phnum; i++) {
390 for (j = 0; j < interp->e.e_phnum; j++) {
/external/qemu/
Delf_ops.h12 bswap16s(&ehdr->e_phnum); /* Program header table entry count */ in glue()
218 size = ehdr.e_phnum * sizeof(phdr[0]); in glue()
226 for(i = 0; i < ehdr.e_phnum; i++) { in glue()
233 for(i = 0; i < ehdr.e_phnum; i++) { in glue()
/external/elfutils/libdwfl/
Ddwfl_report_elf.c191 for (uint_fast16_t i = 0; i < ehdr->e_phnum; ++i) in __libdwfl_report_elf()
206 for (uint_fast16_t i = ehdr->e_phnum; i-- > 0;) in __libdwfl_report_elf()
Delf-from-memory.c148 phnum = ehdr.e32.e_phnum; in elf_from_remote_memory()
160 phnum = ehdr.e64.e_phnum; in elf_from_remote_memory()
Dcore-file.c161 for (int ndx = 0; result >= 0 && ndx < ehdr->e_phnum; ++ndx) in dwfl_report_core_segments()
417 while (ndx < ehdr->e_phnum); in dwfl_core_file_report()
/external/kernel-headers/original/linux/
Delf.h184 Elf32_Half e_phnum; member
201 Elf64_Half e_phnum; member
/external/elfutils/src/
Delfcmp.c185 || ehdr1->e_phnum != ehdr2->e_phnum in main()
412 phdr_region.to = ehdr1->e_phoff + ehdr1->e_phnum * ehdr1->e_phentsize; in main()
447 for (int ndx = 0; ndx < ehdr1->e_phnum; ++ndx) in main()
Delflint.c416 if (ehdr->e_phnum != 0) in check_elf_header()
422 else if (ehdr->e_phnum == 0) in check_elf_header()
482 else if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > size) in check_elf_header()
499 else if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > size) in check_elf_header()
801 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
808 if (pcnt == ehdr->e_phnum) in check_symtab()
956 for (int pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
1202 for (int i = 0; i < ehdr->e_phnum; ++i) in check_reloc_shdr()
1689 for (n = 0; n < ehdr->e_phnum; ++n) in check_dynamic()
1698 if (unlikely (n >= ehdr->e_phnum)) in check_dynamic()
[all …]
Dunstrip.c261 if (ehdr->e_phnum > 0) in copy_elf()
263 ELF_CHECK (gelf_newphdr (outelf, ehdr->e_phnum), in copy_elf()
267 for (uint_fast16_t i = 0; i < ehdr->e_phnum; ++i) in copy_elf()
977 phnum = ehdr.e32.e_phnum; in find_alloc_sections_prelink()
982 phnum = ehdr.e64.e_phnum; in find_alloc_sections_prelink()
1815 if (stripped_ehdr->e_phnum > 0) in copy_elided_sections()
1816 ELF_CHECK (gelf_newphdr (unstripped, stripped_ehdr->e_phnum), in copy_elided_sections()
1820 for (uint_fast16_t i = 0; i < stripped_ehdr->e_phnum; ++i) in copy_elided_sections()
1859 for (uint_fast16_t i = 0; i < stripped_ehdr->e_phnum; ++i) in handle_file()
1959 || stripped_ehdr.e_phnum != unstripped_ehdr.e_phnum) in handle_explicit_files()
/external/qemu/elff/
Delff_elf.h174 Elf_Half e_phnum; member
/external/elfutils/backends/
Dppc_symbol.c83 for (int i = 0; i < ehdr->e_phnum; ++i) in find_dyn_got()

12