Lines Matching defs:elf
809 Elf *elf = NULL;
826 elf = elf_begin(fd, ELF_C_READ, NULL);
827 if (!elf) {
831 if (!gelf_getehdr(elf, &ehdr)) {
835 if (!elf_rawdata(elf_getscn(elf, ehdr.e_shstrndx), NULL)) {
840 while ((scn = elf_nextscn(elf, scn)) != NULL) {
850 name = elf_strptr(elf, ehdr.e_shstrndx, sh.sh_name);
885 switch (gelf_getclass(elf)) {
906 if (elf)
907 elf_end(elf);