Lines Matching defs:ec
44 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum,
54 fsz = _libelf_fsize(ELF_T_SHDR, ec, e->e_version, 1);
65 xlator = _libelf_get_translator(ELF_T_SHDR, ELF_TOMEMORY, ec);
70 #define GET_SHDR_MEMBER(M) ((ec == ELFCLASS32) ? scn->s_shdr.s_shdr32.M : \
103 _libelf_ehdr(Elf *e, int ec, int allocate)
111 assert(ec == ELFCLASS32 || ec == ELFCLASS64);
118 if (e->e_class != ELFCLASSNONE && e->e_class != ec) {
129 e->e_class = ec;
131 if (ec == ELFCLASS32)
139 fsz = _libelf_fsize(ELF_T_EHDR, ec, e->e_version, (size_t) 1);
147 msz = _libelf_msize(ELF_T_EHDR, ec, EV_CURRENT);
156 if (ec == ELFCLASS32) {
170 xlator = _libelf_get_translator(ELF_T_EHDR, ELF_TOMEMORY, ec);
178 if (ec == ELFCLASS32) {
201 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0)