Lines Matching refs:elf
36 static void print_dynamic_symbols(Elf *elf, const char *symtab_name);
41 Elf *elf = NULL, *newelf = NULL; in main() local
90 elf = elf_begin(elf_fd, ELF_C_READ, NULL); in main()
91 FAILIF_LIBELF(elf == NULL, elf_begin); in main()
95 FAILIF(elf_kind(elf) != ELF_K_ELF, in main()
104 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), gelf_getehdr); in main()
113 print_dynamic_symbols(elf, infile); in main()
115 FAILIF_LIBELF(elf_end(elf), elf_end); in main()
122 Elf *elf = NULL; in main() local
132 elf = elf_begin(elf_fd, in main()
135 FAILIF_LIBELF(elf == NULL, elf_begin); in main()
138 FAILIF(elf_kind(elf) != ELF_K_ELF, in main()
150 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), gelf_getehdr); in main()
172 newelf = elf_clone(elf, ELF_C_EMPTY); in main()
186 build_symfilter(symsfile_name, elf, &symfilter, s.st_size); in main()
195 clone_elf(elf, newelf, in main()
221 FAILIF_LIBELF(elf_end(elf), elf_end); in main()
239 static void print_dynamic_symbols(Elf *elf, const char *file) in print_dynamic_symbols() argument
245 FAILIF_LIBELF(0 == gelf_getehdr(elf, &ehdr), gelf_getehdr); in print_dynamic_symbols()
246 while ((scn = elf_nextscn (elf, scn)) != NULL) { in print_dynamic_symbols()
255 FAILIF_LIBELF(elf_getshstrndx(elf, &shstrndx) < 0, in print_dynamic_symbols()
267 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); in print_dynamic_symbols()
269 elsize = gelf_fsize(elf, ELF_T_SYM, 1, ehdr.e_version); in print_dynamic_symbols()
321 Elf_Scn *symscn = elf_getscn(elf, sym->st_shndx); in print_dynamic_symbols()
327 section_name = elf_strptr(elf, shstrndx, in print_dynamic_symbols()
354 elf_strptr(elf, shdr.sh_link, sym->st_name)); in print_dynamic_symbols()