Lines Matching refs:efile

129 	} efile;  member
354 obj->efile.fd = fd; in elf_collect()
355 obj->efile.elf = elf; in elf_collect()
364 if (gelf_getehdr(obj->efile.elf, &ehdr) == NULL) { in elf_collect()
369 obj->efile.encoding = ehdr.e_ident[EI_DATA]; in elf_collect()
405 obj->efile.symbols = data; in elf_collect()
406 obj->efile.symbols_shndx = idx; in elf_collect()
407 obj->efile.strtabidx = sh.sh_link; in elf_collect()
409 obj->efile.idlist = data; in elf_collect()
410 obj->efile.idlist_shndx = idx; in elf_collect()
411 obj->efile.idlist_addr = sh.sh_addr; in elf_collect()
428 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect()
446 if (!gelf_getsym(obj->efile.symbols, i, &sym)) in symbols_collect()
449 if (sym.st_shndx != obj->efile.idlist_shndx) in symbols_collect()
452 name = elf_strptr(obj->efile.elf, obj->efile.strtabidx, in symbols_collect()
615 Elf_Data *data = obj->efile.idlist; in id_patch()
625 unsigned long idx = addr - obj->efile.idlist_addr; in id_patch()
669 Elf_Data *data = obj->efile.idlist; in sets_patch()
681 off = addr - obj->efile.idlist_addr; in sets_patch()
710 if (obj->efile.encoding != ELFDATANATIVE) { in sets_patch()
744 obj->efile.idlist->d_type = ELF_T_WORD; in symbols_patch()
746 elf_flagdata(obj->efile.idlist, ELF_C_SET, ELF_F_DIRTY); in symbols_patch()
748 err = elf_update(obj->efile.elf, ELF_C_WRITE); in symbols_patch()
767 .efile = { in main()
802 if (obj.efile.idlist_shndx == -1 || in main()
803 obj.efile.symbols_shndx == -1) { in main()
820 if (obj.efile.elf) { in main()
821 elf_end(obj.efile.elf); in main()
822 close(obj.efile.fd); in main()