/linux-master/arch/powerpc/boot/ |
H A D | elf_util.c | 37 for (i = 0; i < (unsigned int)elf64->e_phnum; i++, elf64ph++) 40 if (i >= (unsigned int)elf64->e_phnum) 68 for (i = 0; i < elf32->e_phnum; i++, elf32ph++) 71 if (i >= elf32->e_phnum)
|
H A D | elf.h | 66 Elf32_Half e_phnum; member in struct:elf32_hdr 83 Elf64_Half e_phnum; member in struct:elf64_hdr
|
/linux-master/arch/x86/um/ |
H A D | elfcore.c | 12 return vsyscall_ehdr ? (((struct elfhdr *)vsyscall_ehdr)->e_phnum) : 0; 25 for (i = 0; i < ehdrp->e_phnum; ++i) { 51 for (i = 0; i < ehdrp->e_phnum; ++i) { 72 for (i = 0; i < ehdrp->e_phnum; ++i)
|
/linux-master/arch/s390/kernel/ |
H A D | kexec_elf.c | 35 for (i = 0; i < ehdr->e_phnum; i++, phdr++) { 86 if (!ehdr->e_phnum || ehdr->e_phentsize != sizeof(Elf_Phdr)) 90 size += ehdr->e_phentsize * ehdr->e_phnum; 96 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
|
/linux-master/lib/ |
H A D | buildid.c | 77 if (ehdr->e_phnum > 83 for (i = 0; i < ehdr->e_phnum; ++i) { 102 if (ehdr->e_phnum > 108 for (i = 0; i < ehdr->e_phnum; ++i) {
|
/linux-master/tools/perf/util/ |
H A D | symbol-minimal.c | 125 ehdr.e_phnum = bswap_16(ehdr.e_phnum); 128 buf_size = ehdr.e_phentsize * ehdr.e_phnum; 137 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) { 177 ehdr.e_phnum = bswap_16(ehdr.e_phnum); 180 buf_size = ehdr.e_phentsize * ehdr.e_phnum; 189 for (i = 0, phdr = buf; i < ehdr.e_phnum; i++, phdr++) {
|
/linux-master/kernel/ |
H A D | kexec_elf.c | 65 if (ehdr->e_phnum > 0 && ehdr->e_phentsize != sizeof(struct elf_phdr)) { 78 if (ehdr->e_phoff > 0 && ehdr->e_phnum > 0) { 82 * e_phnum is at most 65535 so calculating the size of the 85 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; 155 ehdr->e_phnum = elf16_to_cpu(ehdr, buf_ehdr->e_phnum); 258 * e_phnum is at most 65535 so calculating the size of the 261 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; 267 for (i = 0; i < ehdr->e_phnum; i++) { 308 if (ehdr->e_phoff > 0 && ehdr->e_phnum > [all...] |
H A D | crash_core.c | 211 (ehdr->e_phnum)++; 219 (ehdr->e_phnum)++; 229 ehdr->e_phnum++; 246 ehdr->e_phnum++; 248 kexec_dprintk("Crash PT_LOAD ELF header. phdr=%p vaddr=0x%llx, paddr=0x%llx, sz=0x%llx e_phnum=%d p_offset=0x%llx\n", 250 ehdr->e_phnum, phdr->p_offset);
|
/linux-master/drivers/soc/qcom/ |
H A D | mdt_loader.c | 90 for (i = 0; i < ehdr->e_phnum; i++) { 142 if (ehdr->e_phnum < 2) 148 for (i = 1; i < ehdr->e_phnum; i++) { 222 for (i = 0; i < ehdr->e_phnum; i++) { 277 for (i = 0; i < ehdr->e_phnum; i++) { 319 for (i = 0; i < ehdr->e_phnum; i++) { 346 for (i = 0; i < ehdr->e_phnum; i++) {
|
/linux-master/fs/proc/ |
H A D | vmcore.c | 730 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { 795 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { 828 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { 876 (ehdr_ptr->e_phnum - nr_ptnote +1) * sizeof(Elf64_Phdr); 894 /* Modify e_phnum to reflect merged headers. */ 895 ehdr_ptr->e_phnum = ehdr_ptr->e_phnum - nr_ptnote + 1; 921 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { 986 for (i = 0; i < ehdr_ptr->e_phnum; i++, phdr_ptr++) { 1019 for (i = 0; i < ehdr_ptr->e_phnum; [all...] |
/linux-master/arch/mips/boot/ |
H A D | elf2ecoff.c | 180 e->e_phnum = swab16(e->e_phnum); 330 ex.e_phnum * sizeof(Elf32_Phdr), 333 convert_elf_phdrs(ph, ex.e_phnum); 347 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp); 349 for (i = 0; i < ex.e_phnum; i++) { 388 ex.e_phnum, ph[i].p_type); 564 for (i = 0; i < ex.e_phnum; i++) {
|
/linux-master/arch/parisc/boot/compressed/ |
H A D | misc.c | 258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); 262 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); 264 for (i = 0; i < ehdr.e_phnum; i++) {
|
/linux-master/fs/ |
H A D | binfmt_elf.c | 246 NEW_AUX_ENT(AT_PHNUM, exec->e_phnum); 522 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; 654 interp_elf_ex->e_phnum); 661 for (i = 0; i < interp_elf_ex->e_phnum; i++, eppnt++) { 860 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) { 925 for (i = 0; i < elf_ex->e_phnum; i++, elf_ppnt++) 963 for (i = 0; i < interp_elf_ex->e_phnum; i++, elf_ppnt++) 1028 i < elf_ex->e_phnum; i++, elf_ppnt++) { 1090 alignment = maximum_alignment(elf_phdata, elf_ex->e_phnum); 1125 elf_ex->e_phnum); 1970 Elf_Half e_phnum; local [all...] |
H A D | binfmt_elf_fdpic.c | 148 if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr)) 151 size = params->hdr.e_phnum * sizeof(struct elf_phdr); 162 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { 231 for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) { 650 NEW_AUX_ENT(AT_PHNUM, exec_params->hdr.e_phnum); 755 for (loop = 0; loop < params->hdr.e_phnum; loop++) 804 stop += params->hdr.e_phnum * sizeof (struct elf_phdr); 807 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { 832 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { 938 for (loop = 0; loop < params->hdr.e_phnum; loo 1479 Elf_Half e_phnum; local [all...] |
/linux-master/arch/x86/boot/compressed/ |
H A D | misc.c | 315 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); 319 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); 321 for (i = 0; i < ehdr.e_phnum; i++) {
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | elf.c | 135 * e_phnum - Number of program header entries 137 for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) {
|
/linux-master/arch/alpha/boot/tools/ |
H A D | objstrip.c | 162 if (elf->e_phnum != 1) { 165 prog_name, elf->e_phnum);
|
/linux-master/arch/sparc/vdso/ |
H A D | vdso2c.h | 28 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) {
|
/linux-master/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 58 ELF_GEN_FIELD_GET_SET(hdr, e_phnum, u16)
|
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | core-pkey.c | 210 FAIL_IF(ehdr->e_phoff == 0 || ehdr->e_phnum == 0); 213 * e_phnum is at most 65535 so calculating the size of the 216 phdr_size = sizeof(*phdr) * ehdr->e_phnum;
|
/linux-master/tools/testing/selftests/sgx/ |
H A D | load.c | 234 for (i = 0; i < ehdr->e_phnum; i++) { 246 for (i = 0, j = 0; i < ehdr->e_phnum; i++) {
|
/linux-master/include/uapi/linux/ |
H A D | elf.h | 52 * section header at index 0, and PN_XNUM is set to e_phnum 220 Elf32_Half e_phnum; member in struct:elf32_hdr 237 Elf64_Half e_phnum; member in struct:elf64_hdr
|
/linux-master/sound/pci/mixart/ |
H A D | mixart_hwdep.c | 73 __be16 e_phnum; member in struct:snd_mixart_elf32_ehdr 104 for( i=0; i < be16_to_cpu(elf_header->e_phnum); i++ ) {
|
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-pid-vm.c | 91 uint16_t e_phnum; member in struct:elf64_hdr 181 h.e_phnum = 1;
|
/linux-master/arch/s390/tools/ |
H A D | relocs.c | 141 ehdr.e_phnum = elf_half_to_cpu(ehdr.e_phnum);
|