Lines Matching defs:elf_fd
24 int elf_open(const char *binary_path, struct elf_fd *elf_fd)
29 elf_fd->elf = NULL;
30 elf_fd->fd = -1;
48 elf_fd->fd = fd;
49 elf_fd->elf = elf;
53 void elf_close(struct elf_fd *elf_fd)
55 if (!elf_fd)
57 elf_end(elf_fd->elf);
58 close(elf_fd->fd);
377 struct elf_fd elf_fd;
380 ret = elf_open(binary_path, &elf_fd);
383 ret = elf_find_func_offset(elf_fd.elf, binary_path, name);
384 elf_close(&elf_fd);
415 struct elf_fd elf_fd;
417 err = elf_open(binary_path, &elf_fd);
440 err = elf_sym_iter_new(&iter, elf_fd.elf, binary_path, sh_types[i], st_type);
495 elf_close(&elf_fd);
510 struct elf_fd elf_fd;
513 err = elf_open(binary_path, &elf_fd);
521 err = elf_sym_iter_new(&iter, elf_fd.elf, binary_path, sh_types[i], STT_FUNC);
556 elf_close(&elf_fd);