/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | elfcore.h | 195 if (i_ehdrp->e_shoff != 0 && i_ehdrp->e_phnum == PN_XNUM) in elf_core_file_p() 213 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_core_file_p() 214 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_core_file_p() 221 if (i_ehdrp->e_phnum > 1) in elf_core_file_p() 229 if (i_ehdrp->e_phnum > (unsigned int) -1 / sizeof (x_phdr) in elf_core_file_p() 230 || i_ehdrp->e_phnum > (unsigned int) -1 / sizeof (i_phdr)) in elf_core_file_p() 248 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum; in elf_core_file_p() 256 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() 284 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() 292 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() [all …]
|
H A D | elfcode.h | 253 dst->e_phnum = H_GET_16 (abfd, src->e_phnum); in elf_swap_ehdr_in() 283 tmp = src->e_phnum; in elf_swap_ehdr_out() 286 H_PUT_16 (abfd, tmp, dst->e_phnum); in elf_swap_ehdr_out() 598 if (i_ehdrp->e_phnum > 0) in elf_object_p() 649 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_object_p() 650 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_object_p() 772 if (i_ehdrp->e_phnum == 0) in elf_object_p() 1033 if (i_ehdrp->e_phnum >= PN_XNUM) in elf_write_shdrs_and_ehdr() 1083 num = i_ehdrp->e_phnum; in elf_checksum_contents() 1732 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME() [all …]
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | elfcore.h | 187 if (i_ehdrp->e_shoff != 0 && i_ehdrp->e_phnum == PN_XNUM) in elf_core_file_p() 205 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_core_file_p() 206 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_core_file_p() 213 if (i_ehdrp->e_phnum > 1) in elf_core_file_p() 221 if (i_ehdrp->e_phnum > (unsigned int) -1 / sizeof (x_phdr) in elf_core_file_p() 222 || i_ehdrp->e_phnum > (unsigned int) -1 / sizeof (i_phdr)) in elf_core_file_p() 225 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p() 240 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum; in elf_core_file_p() 248 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() 276 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() [all …]
|
H A D | elfcode.h | 253 dst->e_phnum = H_GET_16 (abfd, src->e_phnum); in elf_swap_ehdr_in() 283 tmp = src->e_phnum; in elf_swap_ehdr_out() 286 H_PUT_16 (abfd, tmp, dst->e_phnum); in elf_swap_ehdr_out() 591 if (i_ehdrp->e_phnum > 0) in elf_object_p() 642 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_object_p() 643 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_object_p() 766 if (i_ehdrp->e_phnum == 0) in elf_object_p() 1013 if (i_ehdrp->e_phnum >= PN_XNUM) in elf_write_shdrs_and_ehdr() 1063 num = i_ehdrp->e_phnum; in elf_checksum_contents() 1704 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME() [all …]
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | elfcore.h | 188 if (i_ehdrp->e_shoff != 0 && i_ehdrp->e_phnum == PN_XNUM) in elf_core_file_p() 209 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_core_file_p() 210 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_core_file_p() 217 if (i_ehdrp->e_phnum > 1) in elf_core_file_p() 225 if (i_ehdrp->e_phnum > (unsigned int) -1 / sizeof (x_phdr) in elf_core_file_p() 226 || i_ehdrp->e_phnum > (unsigned int) -1 / sizeof (i_phdr)) in elf_core_file_p() 229 where = i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr); in elf_core_file_p() 246 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum; in elf_core_file_p() 254 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() 282 for (phindex = 0; phindex < i_ehdrp->e_phnum; ++phindex) in elf_core_file_p() [all …]
|
H A D | elfcode.h | 254 dst->e_phnum = H_GET_16 (abfd, src->e_phnum); in elf_swap_ehdr_in() 284 tmp = src->e_phnum; in elf_swap_ehdr_out() 287 H_PUT_16 (abfd, tmp, dst->e_phnum); in elf_swap_ehdr_out() 592 if (i_ehdrp->e_phnum > 0) in elf_object_p() 646 i_ehdrp->e_phnum = i_shdr.sh_info; in elf_object_p() 647 if (i_ehdrp->e_phnum != i_shdr.sh_info) in elf_object_p() 768 if (i_ehdrp->e_phnum == 0) in elf_object_p() 1011 if (i_ehdrp->e_phnum >= PN_XNUM) in elf_write_shdrs_and_ehdr() 1061 num = i_ehdrp->e_phnum; in elf_checksum_contents() 1700 for (i = 0; i < i_ehdr.e_phnum; ++i) in NAME() [all …]
|
/dragonfly/contrib/elftoolchain/libelf/ |
H A D | gelf_ehdr.c | 78 d->e_phnum = eh32->e_phnum; in gelf_getehdr() 161 eh32->e_phnum = s->e_phnum; in gelf_update_ehdr()
|
H A D | gelf_phdr.c | 69 if (index >= eh32->e_phnum) { in gelf_getphdr() 90 if (index >= eh64->e_phnum) { in gelf_getphdr() 148 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in gelf_update_phdr() 150 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in gelf_update_phdr()
|
H A D | libelf_extended.c | 129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum() 131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
|
H A D | libelf_ehdr.c | 178 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr() 183 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
|
/dragonfly/contrib/binutils-2.34/binutils/ |
H A D | elfedit.c | 108 phdrs = xmalloc (elf_header.e_phnum * sizeof (*phdrs)); in update_gnu_property() 114 for (i = 0; i < elf_header.e_phnum; i++) in update_gnu_property() 130 for (i = 0; i < elf_header.e_phnum; i++) in update_gnu_property() 144 for (i = 0; i < elf_header.e_phnum; i++) in update_gnu_property() 461 elf_header.e_phnum = BYTE_GET (ehdr32.e_phnum); in get_file_header() 494 elf_header.e_phnum = BYTE_GET (ehdr64.e_phnum); in get_file_header()
|
/dragonfly/libexec/rtld-elf/ |
H A D | map_object.c | 107 phsize = hdr->e_phnum * sizeof (phdr[0]); in map_object() 108 phlimit = phdr + hdr->e_phnum; in map_object() 116 segs = alloca(sizeof(segs[0]) * hdr->e_phnum); in map_object() 276 (hdr->e_phoff + hdr->e_phnum * sizeof (Elf_Phdr))) { in map_object() 381 if (hdr->e_phoff + hdr->e_phnum * sizeof(Elf_Phdr) > in get_elf_header()
|
/dragonfly/test/nvmm/demo/toyvirt/ |
H A D | elf.c | 56 if (eh->e_shnum > ELF_MAXSHNUM || eh->e_phnum > ELF_MAXPHNUM) in elf_check_header() 74 for (i = 0; i < ehdr->e_phnum; i++) { in elf_parse()
|
/dragonfly/contrib/file/src/ |
H A D | elfclass.h | 39 phnum = elf_getu16(swap, elfhdr.e_phnum); 52 phnum = elf_getu16(swap, elfhdr.e_phnum);
|
H A D | readelf.h | 103 Elf32_Half e_phnum; member 120 Elf64_Half e_phnum; member
|
/dragonfly/contrib/gdb-7/include/elf/ |
H A D | external.h | 64 unsigned char e_phnum[2]; /* Program header table entry count */ member 81 unsigned char e_phnum[2]; /* Program header table entry count */ member
|
/dragonfly/contrib/binutils-2.27/include/elf/ |
H A D | external.h | 63 unsigned char e_phnum[2]; /* Program header table entry count */ member 80 unsigned char e_phnum[2]; /* Program header table entry count */ member
|
/dragonfly/contrib/binutils-2.34/include/elf/ |
H A D | external.h | 63 unsigned char e_phnum[2]; /* Program header table entry count */ member 80 unsigned char e_phnum[2]; /* Program header table entry count */ member
|
/dragonfly/sys/platform/pc64/x86_64/ |
H A D | dump_machdep.c | 306 ehdr.e_phnum = foreach_chunk(cb_size, &dumpsize); in md_dumpsys() 307 hdrsz = ehdr.e_phoff + ehdr.e_phnum * ehdr.e_phentsize; in md_dumpsys() 324 ehdr.e_phnum); in md_dumpsys()
|
/dragonfly/contrib/binutils-2.27/binutils/ |
H A D | elfedit.c | 253 elf_header.e_phnum = BYTE_GET (ehdr32.e_phnum); in get_file_header() 286 elf_header.e_phnum = BYTE_GET (ehdr64.e_phnum); in get_file_header()
|
/dragonfly/sys/kern/ |
H A D | imgact_elf.c | 486 (hdr->e_phentsize * hdr->e_phnum) > PAGE_SIZE - hdr->e_phoff) { in __elfN() 497 for (i = 0, numsegs = 0; i < hdr->e_phnum; i++) { in __elfN() 638 (hdr->e_phoff + hdr->e_phentsize * hdr->e_phnum) > PAGE_SIZE) { in __CONCAT() 647 for (i = 0; i < hdr->e_phnum; i++) { in __CONCAT() 721 for (i = 0; i < hdr->e_phnum; i++) { in __CONCAT() 749 hdr->e_phoff + hdr->e_phnum * hdr->e_phentsize in __CONCAT() 859 elf_auxargs->phnum = hdr->e_phnum; in __CONCAT() 1363 ehdr->e_phnum = numsegs + 1; in __elfN() 1679 for (i = 0; i < hdr->e_phnum; i++) { in __elfN()
|
H A D | kern_checkpoint.c | 140 ehdr->e_phnum)); in elf_gethdr() 146 PRINTF(("Number of Program headers: %d\n", ehdr->e_phnum)); in elf_gethdr() 232 nbyte = sizeof(Elf_Phdr) * ehdr->e_phnum; in ckpt_thaw_proc() 258 error = elf_loadphdrs(fp, phdr, ehdr->e_phnum); in ckpt_thaw_proc()
|
/dragonfly/lib/libkvm/ |
H A D | kvm_x86_64.c | 122 n = e->e_phnum; in _kvm_pa2off() 185 hdrsz = ehdr->e_phoff + ehdr->e_phentsize * ehdr->e_phnum; in _kvm_initvtop()
|
/dragonfly/stand/boot/common/ |
H A D | load_elf.c | 300 if ((ehdr->e_phoff + ehdr->e_phnum * sizeof(*phdr)) > ef->firstlen) { in __elfN() 306 for (i = 0; i < ehdr->e_phnum; i++) { in __elfN() 382 for (j = 0; j < ehdr->e_phnum; j++) { in __elfN() 474 for (i = 0; i < ehdr->e_phnum; i++) { in __elfN()
|
/dragonfly/usr.bin/ldd/ |
H A D | ldd.c | 139 for (i = 0; i < ehdr.e_phnum; i++) { in main()
|