Lines Matching refs:ehdr
36 GElf_Ehdr ehdr_mem, *ehdr; /* store ELF header of original library */ in clone_elf() local
58 ehdr = gelf_getehdr (elf, &ehdr_mem); in clone_elf()
59 FAILIF_LIBELF(NULL == ehdr, gelf_getehdr); in clone_elf()
63 (ehdr->e_type != ET_REL && gelf_newphdr (newelf, in clone_elf()
64 ehdr->e_phnum) == 0), in clone_elf()
71 *elf_little = (ehdr->e_ident[EI_DATA] == ELFDATA2LSB); in clone_elf()
81 phdr_info = (GElf_Phdr *)CALLOC(ehdr->e_phnum, sizeof(GElf_Phdr)); in clone_elf()
82 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) { in clone_elf()
187 FAILIF_LIBELF(0 != arm_init(elf, ehdr->e_machine, ebl, sizeof(Ebl)), in clone_elf()
210 if (SECTION_STRIP_P (ebl, elf, ehdr, &shdr_info[cnt].shdr, in clone_elf()
304 elsize = gelf_fsize (elf, ELF_T_SYM, 1, ehdr->e_version); in clone_elf()
471 ehdr->e_type != ET_DYN, in clone_elf()
480 ehdr, /* store ELF header of original library */ in clone_elf()
493 … ehdr->e_type == ET_DYN, /* adjust section ofsets only when the file is a shared library */ in clone_elf()
503 (ehdr->e_type != ET_REL ? ELF_F_LAYOUT : 0)); in clone_elf()