Lines Matching defs:elf
31 static int handle_section (Elf *elf, Elf_Scn *scn);
33 static void print_symtab (Elf *elf, Elf_Data *data);
39 Elf *elf;
56 elf = elf_begin (fd, ELF_C_READ, NULL);
57 if (elf == NULL)
63 if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0)
69 if (elf_end (elf) != 0)
78 handle_section (Elf *elf, Elf_Scn *scn)
87 ehdr = gelf_getehdr (elf, &ehdr_mem);
103 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
123 print_symtab (elf, data);
163 print_symtab (Elf *elf, Elf_Data *data)
165 int class = gelf_getclass (elf);