Lines Matching refs:i_ehdr
1124 Elf_Internal_Ehdr i_ehdr;
1126 i_ehdr = *i_ehdrp;
1127 i_ehdr.e_phoff = i_ehdr.e_shoff = 0;
1128 elf_swap_ehdr_out (abfd, &i_ehdr, &x_ehdr);
1632 Elf_Internal_Ehdr i_ehdr; /* Elf file header, internal form */
1688 elf_swap_ehdr_in (templ, &x_ehdr, &i_ehdr);
1693 if (i_ehdr.e_phentsize != sizeof (Elf_External_Phdr) || i_ehdr.e_phnum == 0)
1699 x_phdrs = bfd_malloc (i_ehdr.e_phnum * (sizeof *x_phdrs + sizeof *i_phdrs));
1705 err = target_read_memory (ehdr_vma + i_ehdr.e_phoff, (bfd_byte *) x_phdrs,
1706 i_ehdr.e_phnum * sizeof x_phdrs[0]);
1714 i_phdrs = (Elf_Internal_Phdr *) &x_phdrs[i_ehdr.e_phnum];
1720 for (i = 0; i < i_ehdr.e_phnum; ++i)
1755 && (bfd_vma) contents_size >= (i_ehdr.e_shoff
1756 + i_ehdr.e_shnum * i_ehdr.e_shentsize))
1759 if ((bfd_vma) contents_size < (i_ehdr.e_shoff
1760 + i_ehdr.e_shnum * i_ehdr.e_shentsize))
1761 contents_size = i_ehdr.e_shoff + i_ehdr.e_shnum * i_ehdr.e_shentsize;
1775 for (i = 0; i < i_ehdr.e_phnum; ++i)
1799 if ((bfd_vma) contents_size < (i_ehdr.e_shoff
1800 + i_ehdr.e_shnum * i_ehdr.e_shentsize))