Home | History | Annotate | Download | only in tests

Lines Matching refs:elf

69   Elf *elf;
156 elf = elf_begin (fd, ELF_C_READ, NULL);
157 if (elf == NULL)
159 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
163 if (elf_kind (elf) != ELF_K_ELF)
165 puts ("not a valid ELF file");
170 ehdr = gelf_getehdr (elf, &ehdr_mem);
173 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
184 scn = elf_getscn (elf, cnt);
201 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
205 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
251 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
291 elf_strptr (elf, shdr->sh_link,
337 elf_end (elf);