Lines Matching refs:efile
102 } efile; member
323 obj->efile.fd = fd; in elf_collect()
324 obj->efile.elf = elf; in elf_collect()
367 obj->efile.symbols = data; in elf_collect()
368 obj->efile.symbols_shndx = idx; in elf_collect()
369 obj->efile.strtabidx = sh.sh_link; in elf_collect()
371 obj->efile.idlist = data; in elf_collect()
372 obj->efile.idlist_shndx = idx; in elf_collect()
373 obj->efile.idlist_addr = sh.sh_addr; in elf_collect()
390 scn = elf_getscn(obj->efile.elf, obj->efile.symbols_shndx); in symbols_collect()
409 if (!gelf_getsym(obj->efile.symbols, i, &sym)) in symbols_collect()
412 if (sym.st_shndx != obj->efile.idlist_shndx) in symbols_collect()
415 name = elf_strptr(obj->efile.elf, obj->efile.strtabidx, in symbols_collect()
547 Elf_Data *data = obj->efile.idlist; in id_patch()
558 unsigned long idx = addr - obj->efile.idlist_addr; in id_patch()
602 Elf_Data *data = obj->efile.idlist; in sets_patch()
615 idx = addr - obj->efile.idlist_addr; in sets_patch()
653 obj->efile.idlist->d_type = ELF_T_WORD; in symbols_patch()
655 elf_flagdata(obj->efile.idlist, ELF_C_SET, ELF_F_DIRTY); in symbols_patch()
657 err = elf_update(obj->efile.elf, ELF_C_WRITE); in symbols_patch()
677 .efile = { in main()
712 if (obj.efile.idlist_shndx == -1 || in main()
713 obj.efile.symbols_shndx == -1) { in main()
731 if (obj.efile.elf) in main()
732 elf_end(obj.efile.elf); in main()
733 close(obj.efile.fd); in main()