Lines Matching refs:ehdr
517 void *ehdr, *phdr; in _libelf_resync_elf() local
530 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) in _libelf_resync_elf()
533 eh32 = ehdr; in _libelf_resync_elf()
534 eh64 = ehdr; in _libelf_resync_elf()
605 ehdr)) in _libelf_resync_elf()
651 _libelf_load_section_headers(e, ehdr) == 0) in _libelf_resync_elf()
694 _libelf_setphnum(e, ehdr, ec, phnum); in _libelf_resync_elf()
695 _libelf_setshnum(e, ehdr, ec, shnum); in _libelf_resync_elf()
851 void *ehdr; in _libelf_write_ehdr() local
860 ehdr = _libelf_ehdr(e, ec, 0); in _libelf_write_ehdr()
861 assert(ehdr != NULL); in _libelf_write_ehdr()
872 src.d_buf = ehdr; in _libelf_write_ehdr()
895 void *ehdr; in _libelf_write_phdr() local
906 ehdr = _libelf_ehdr(e, ec, 0); in _libelf_write_phdr()
907 assert(ehdr != NULL); in _libelf_write_phdr()
913 eh32 = (Elf32_Ehdr *) ehdr; in _libelf_write_phdr()
916 eh64 = (Elf64_Ehdr *) ehdr; in _libelf_write_phdr()
957 void *ehdr; in _libelf_write_shdr() local
969 ehdr = _libelf_ehdr(e, ec, 0); in _libelf_write_shdr()
970 assert(ehdr != NULL); in _libelf_write_shdr()
975 eh32 = (Elf32_Ehdr *) ehdr; in _libelf_write_shdr()
978 eh64 = (Elf64_Ehdr *) ehdr; in _libelf_write_shdr()