Lines Matching defs:elf
61 Elf *elf;
110 elf = elf_begin (fd, ELF_C_READ, NULL);
111 if (elf == NULL)
113 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
117 if (elf_kind (elf) != ELF_K_ELF)
119 puts ("not a valid ELF file");
124 ehdr = gelf_getehdr (elf, &ehdr_mem);
127 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
134 puts ("ELF header does not match");
145 scn = elf_getscn (elf, cnt);
162 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
166 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
231 elf_end (elf);