Home | History | Annotate | Download | only in tests

Lines Matching refs:elf

97   Elf *elf;
183 elf = elf_begin (fd, ELF_C_READ, NULL);
184 if (elf == NULL)
186 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
190 if (elf_kind (elf) != ELF_K_ELF)
192 puts ("not a valid ELF file");
197 ehdr = gelf_getehdr (elf, &ehdr_mem);
200 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
207 puts ("ELF header does not match");
218 scn = elf_getscn (elf, cnt);
235 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
239 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
333 elf_end (elf);