Lines Matching refs:elf_fd
35 int elf_open(const char *binary_path, struct elf_fd *elf_fd)
58 elf_fd->fd = fd;
59 elf_fd->elf = elf;
63 int elf_open(const char *binary_path, struct elf_fd *elf_fd)
72 elf_fd->elf = pelfio;
73 elf_fd->fd = -1;
79 void elf_close(struct elf_fd *elf_fd)
81 if (!elf_fd)
84 elf_end(elf_fd->elf);
85 close(elf_fd->fd);
87 elfio_delete(elf_fd->elf);
455 struct elf_fd elf_fd;
458 ret = elf_open(binary_path, &elf_fd);
461 ret = elf_find_func_offset(elf_fd.elf, binary_path, name);
462 elf_close(&elf_fd);
492 struct elf_fd elf_fd;
494 err = elf_open(binary_path, &elf_fd);
517 err = elf_sym_iter_new(&iter, elf_fd.elf, binary_path, sh_types[i], STT_FUNC);
572 elf_close(&elf_fd);
587 struct elf_fd elf_fd;
590 err = elf_open(binary_path, &elf_fd);
598 err = elf_sym_iter_new(&iter, elf_fd.elf, binary_path, sh_types[i], STT_FUNC);
633 elf_close(&elf_fd);