Home
last modified time | relevance | path

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

12

/external/elfutils/tests/
Dupdate2.c72 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
110 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
111 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
132 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Decp.c53 if (ehdr->e_phnum > 0) in main()
57 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) in main()
61 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) in main()
Dupdate3.c81 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
159 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
160 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
187 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dnewfile.c42 ehdr->e_phnum, in print_ehdr()
121 ZERO_TEST (e_phnum); in main()
153 VALUE_TEST (e_phnum, 10); in main()
Dupdate4.c86 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
312 phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
313 phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT); in main()
340 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dupdate1.c71 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
109 ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize, in main()
Dshowptable.c66 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt) in main()
/external/elfcopy/
Dcommon.c28 ehdr->e_phnum); in map_over_segments()
30 for (index = ehdr->e_phnum; index; index--) { in map_over_segments()
Delfcopy.c1019 for (pi = 0; pi < ehdr->e_phnum; ++pi) { in adjust_elf()
1034 if (phdr_info[pi].p_memsz != ehdr->e_phentsize * ehdr->e_phnum) { in adjust_elf()
1035 ASSERT(phdr_info[pi].p_memsz > ehdr->e_phentsize * ehdr->e_phnum); in adjust_elf()
1038 (long)(ehdr->e_phentsize * ehdr->e_phnum)); in adjust_elf()
1039 phdr_info[pi].p_memsz = ehdr->e_phentsize * ehdr->e_phnum; in adjust_elf()
2722 for (pi = 0; pi < ehdr->e_phnum; ++pi) { in get_section_real_align()
2787 lastoffset += ehdr->e_phnum * ehdr->e_phentsize; in update_section_offsets()
2970 for (pi = 0; pi < ehdr->e_phnum; pi++) { in verify_elf()
/external/elfutils/libelf/
Delf32_newphdr.c79 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
91 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
108 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
Delf32_updatefile.c151 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
156 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
166 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum)); in __elfw2()
435 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
444 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1); in __elfw2()
453 * ehdr->e_phnum, ehdr->e_phoff) in __elfw2()
454 != sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum)) in __elfw2()
472 + sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum); in __elfw2()
Dgelf_getphdr.c67 if (ndx >= elf->state.elf32.ehdr->e_phnum)
103 if (ndx >= elf->state.elf64.ehdr->e_phnum)
Dgelf_update_phdr.c71 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum)) in gelf_update_phdr()
104 if (unlikely (ndx >= elf->state.elf64.ehdr->e_phnum)) in gelf_update_phdr()
Dgelf_update_ehdr.c78 COPY (e_phnum); in gelf_update_ehdr()
Dgelf_getehdr.c68 COPY (e_phnum);
Delf32_updatenull.c133 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum)); in __elfw2()
142 size += elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum); in __elfw2()
Delf_begin.c262 if (elf->state.elf32.ehdr->e_phnum) in file_read_elf()
304 CONVERT (elf->state.elf32.ehdr_mem.e_phnum); in file_read_elf()
348 if (elf->state.elf64.ehdr->e_phnum) in file_read_elf()
390 CONVERT (elf->state.elf64.ehdr_mem.e_phnum); in file_read_elf()
Delf32_getphdr.c74 phnum = ehdr->e_phnum;
/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()
Delf.h964 Elf32_Half e_phnum; member
981 Elf64_Half e_phnum; member
/external/kernel-headers/original/linux/
Delf.h184 Elf32_Half e_phnum; member
201 Elf64_Half e_phnum; member
/external/elfutils/src/
Delflint.c417 if (ehdr->e_phnum != 0) in check_elf_header()
423 else if (ehdr->e_phnum == 0) in check_elf_header()
493 else if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > size) in check_elf_header()
510 else if (ehdr->e_phoff + ehdr->e_phnum * ehdr->e_phentsize > size) in check_elf_header()
795 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
802 if (pcnt == ehdr->e_phnum) in check_symtab()
912 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
2182 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_sections()
2216 if (pcnt == ehdr->e_phnum) in check_sections()
2436 for (int cnt = 0; cnt < ehdr->e_phnum; ++cnt) in check_program_header()
[all …]
/external/qemu/elff/
Delf.h176 Elf_Half e_phnum; member
/external/grub/stage2/
Dboot.c116 if (pu.elf->e_phoff == 0 || pu.elf->e_phnum == 0 in load_image()
117 || ((pu.elf->e_phoff + (pu.elf->e_phentsize * pu.elf->e_phnum)) in load_image()
599 for (i = 0; i < pu.elf->e_phnum; i++) in load_image()
Di386-elf.h79 Elf32_Half e_phnum; /* number of entries in program header */ member

12