Lines Matching defs:ec
37 _libelf_getphdr(Elf *e, int ec)
48 assert(ec == ELFCLASS32 || ec == ELFCLASS64);
55 if ((phdr = (ec == ELFCLASS32 ?
64 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
69 if (ec == ELFCLASS32) {
86 msz = _libelf_msize(ELF_T_PHDR, ec, EV_CURRENT);
95 if (ec == ELFCLASS32)
101 xlator = _libelf_get_translator(ELF_T_PHDR, ELF_TOMEMORY, ec);
109 _libelf_newphdr(Elf *e, int ec, size_t count)
119 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) {
124 assert(e->e_class == ec);
125 assert(ec == ELFCLASS32 || ec == ELFCLASS64);
128 msz = _libelf_msize(ELF_T_PHDR, ec, e->e_version);
138 if (ec == ELFCLASS32) {