Lines Matching refs:ec
37 _libelf_getphdr(Elf *e, int ec) in _libelf_getphdr() argument
47 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in _libelf_getphdr()
54 if ((phdr = (ec == ELFCLASS32 ? in _libelf_getphdr()
63 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) in _libelf_getphdr()
68 if (ec == ELFCLASS32) { in _libelf_getphdr()
90 if ((msz = _libelf_msize(ELF_T_PHDR, ec, EV_CURRENT)) == 0) in _libelf_getphdr()
98 if (ec == ELFCLASS32) in _libelf_getphdr()
104 xlator = _libelf_get_translator(ELF_T_PHDR, ELF_TOMEMORY, ec, in _libelf_getphdr()
113 _libelf_newphdr(Elf *e, int ec, size_t count) in _libelf_newphdr() argument
123 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) { in _libelf_newphdr()
128 assert(e->e_class == ec); in _libelf_newphdr()
129 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in _libelf_newphdr()
132 if ((msz = _libelf_msize(ELF_T_PHDR, ec, e->e_version)) == 0) in _libelf_newphdr()
141 if (ec == ELFCLASS32) { in _libelf_newphdr()