Lines Matching refs:elf
39 Elf *elf; member
142 source->elf = elf_begin(source->elf_fd, ELF_C_READ, NULL); in init_source()
143 FAILIF_LIBELF(source->elf == NULL, elf_begin); in init_source()
146 if (elf_kind(source->elf) != ELF_K_ELF) { in init_source()
155 FAILIF_LIBELF(0 == gelf_getehdr(source->elf, &source->elf_hdr), gelf_getehdr); in init_source()
165 FAILIF_LIBELF(elf_getshstrndx (source->elf, &source->shstrndx) < 0, in init_source()
168 FAILIF_LIBELF(elf_getshnum (source->elf, &source->shnum) < 0, elf_getshnum); in init_source()
176 scn = elf_getscn(source->elf, scnidx); in init_source()
180 INFO("\tfound section [%s]...\n", elf_strptr(source->elf, source->shstrndx, shdr->sh_name)); in init_source()
189 source->strtab.scn = elf_getscn(source->elf, in init_source()
251 size_t symsize = gelf_fsize (source->elf, in init_source()
277 FAILIF_LIBELF(elf_end(source->elf), elf_end); in destroy_source()
298 const char *symname = elf_strptr(source->elf, in is_symbol_imported()
332 Elf_Scn *scn = elf_getscn(source->elf, sym->st_shndx); in is_symbol_imported()
337 if (!strcmp(".bss", elf_strptr(source->elf, in is_symbol_imported()
425 const char *symname = elf_strptr(source->elf, in resolve()
430 int lib_symidx = hash_lookup(lib->elf, in resolve()
533 fprintf(fp, "%s\n", elf_strptr(source->elf, in print_used_symbols()
590 symname = elf_strptr(source->elf, in print_symbol_references()
675 elf_strptr (source->elf, in process_library()