Lines Matching refs:elf_fd
13 int elf_open(const char *binary_path, struct elf_fd *elf_fd)
36 elf_fd->fd = fd;
37 elf_fd->elf = elf;
41 void elf_close(struct elf_fd *elf_fd)
43 if (!elf_fd)
45 elf_end(elf_fd->elf);
46 close(elf_fd->fd);
260 struct elf_fd elf_fd;
263 ret = elf_open(binary_path, &elf_fd);
266 ret = elf_find_func_offset(elf_fd.elf, binary_path, name);
267 elf_close(&elf_fd);
297 struct elf_fd elf_fd;
299 err = elf_open(binary_path, &elf_fd);
322 err = elf_sym_iter_new(&iter, elf_fd.elf, binary_path, sh_types[i], STT_FUNC);
377 elf_close(&elf_fd);
392 struct elf_fd elf_fd;
395 err = elf_open(binary_path, &elf_fd);
403 err = elf_sym_iter_new(&iter, elf_fd.elf, binary_path, sh_types[i], STT_FUNC);
438 elf_close(&elf_fd);