Lines Matching full:x_ehdr
493 Elf_External_Ehdr x_ehdr; /* Elf file header, external form */
506 if (bfd_bread (&x_ehdr, sizeof (x_ehdr), abfd) != sizeof (x_ehdr))
520 if (! elf_file_p (&x_ehdr)
521 || x_ehdr.e_ident[EI_VERSION] != EV_CURRENT
522 || x_ehdr.e_ident[EI_CLASS] != ELFCLASS)
526 switch (x_ehdr.e_ident[EI_DATA])
551 elf_swap_ehdr_in (abfd, &x_ehdr, i_ehdrp);
994 Elf_External_Ehdr x_ehdr; /* Elf file header, external form */
1009 elf_swap_ehdr_out (abfd, i_ehdrp, &x_ehdr);
1010 amt = sizeof (x_ehdr);
1012 || bfd_bwrite (&x_ehdr, amt, abfd) != amt)
1058 Elf_External_Ehdr x_ehdr;
1063 elf_swap_ehdr_out (abfd, &i_ehdr, &x_ehdr);
1064 (*process) (&x_ehdr, sizeof x_ehdr, arg);
1622 Elf_External_Ehdr x_ehdr; /* Elf file header, external form */
1636 err = target_read_memory (ehdr_vma, (bfd_byte *) &x_ehdr, sizeof x_ehdr);
1648 if (! elf_file_p (&x_ehdr)
1649 || x_ehdr.e_ident[EI_VERSION] != EV_CURRENT
1650 || x_ehdr.e_ident[EI_CLASS] != ELFCLASS)
1657 switch (x_ehdr.e_ident[EI_DATA])
1679 elf_swap_ehdr_in (templ, &x_ehdr, &i_ehdr);
1824 memset (&x_ehdr.e_shoff, 0, sizeof x_ehdr.e_shoff);
1825 memset (&x_ehdr.e_shnum, 0, sizeof x_ehdr.e_shnum);
1826 memset (&x_ehdr.e_shstrndx, 0, sizeof x_ehdr.e_shstrndx);
1831 memcpy (contents, &x_ehdr, sizeof x_ehdr);