Lines Matching defs:elf
38 getehdr(Elf * elf, int class)
41 if (elf == 0)
43 ELFWLOCK(elf);
44 if (elf->ed_class != class) {
46 ELFUNLOCK(elf);
49 if (elf->ed_ehdr == 0)
50 (void) _elf_cook(elf);
52 rc = elf->ed_ehdr;
53 ELFUNLOCK(elf);
60 elf32_getehdr(Elf * elf)
62 return ((Elf32_Ehdr*) getehdr(elf, ELFCLASS32));
67 elf64_getehdr(Elf * elf)
69 return ((Elf64_Ehdr*) getehdr(elf, ELFCLASS64));