Lines Matching defs:ec
40 _libelf_getphdr(Elf *e, int ec)
50 assert(ec == ELFCLASS32 || ec == ELFCLASS64);
57 if ((phdr = (ec == ELFCLASS32 ?
66 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
71 if (ec == ELFCLASS32) {
90 msz = _libelf_msize(ELF_T_PHDR, ec, EV_CURRENT);
99 if (ec == ELFCLASS32)
105 xlator = _libelf_get_translator(ELF_T_PHDR, ELF_TOMEMORY, ec);
113 _libelf_newphdr(Elf *e, int ec, size_t count)
123 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) {
128 assert(e->e_class == ec);
129 assert(ec == ELFCLASS32 || ec == ELFCLASS64);
132 msz = _libelf_msize(ELF_T_PHDR, ec, e->e_version);
142 if (ec == ELFCLASS32) {