Lines Matching defs:ec
41 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum,
51 fsz = _libelf_fsize(ELF_T_SHDR, ec, e->e_version, 1);
62 xlator = _libelf_get_translator(ELF_T_SHDR, ELF_TOMEMORY, ec);
66 #define GET_SHDR_MEMBER(M) ((ec == ELFCLASS32) ? scn->s_shdr.s_shdr32.M : \
99 _libelf_ehdr(Elf *e, int ec, int allocate)
107 assert(ec == ELFCLASS32 || ec == ELFCLASS64);
114 if (e->e_class != ELFCLASSNONE && e->e_class != ec) {
125 e->e_class = ec;
127 if (ec == ELFCLASS32)
135 fsz = _libelf_fsize(ELF_T_EHDR, ec, e->e_version, (size_t) 1);
143 msz = _libelf_msize(ELF_T_EHDR, ec, EV_CURRENT);
152 if (ec == ELFCLASS32) {
166 xlator = _libelf_get_translator(ELF_T_EHDR, ELF_TOMEMORY, ec);
174 if (ec == ELFCLASS32) {
197 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0)