Home | History | Annotate | Download | only in libdwfl

Lines Matching defs:elf

73   if (mod->debug.elf == NULL)
81 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx);
84 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn)
96 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
117 const char *file_name, int fd, Elf *elf);
119 const char *file_name, int fd, Elf *elf,
123 /* Report one module for an ELF file, or many for an archive.
124 Always consumes ELF and FD. */
127 Elf *elf, int (*predicate) (const char *module,
130 switch (elf_kind (elf))
134 __libdwfl_seterrno (elf == NULL ? DWFL_E_LIBELF : DWFL_E_BADELF);
138 return process_elf (dwfl, name, file_name, fd, elf);
141 return process_archive (dwfl, name, file_name, fd, elf, predicate);
145 /* Report the open ELF file as a module. Always consumes ELF and FD. */
148 Elf *elf)
150 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf,
166 if (mod->main.fd != -1 && elf_cntl (mod->main.elf, ELF_C_FDREAD) == 0)
181 int fd, Elf *member, Dwfl_Module **mod)
242 On module teardown we will close it only on the last Elf reference. */
257 Elf *archive,
262 Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive);
273 /* We can drop the archive Elf handle even if we're still using members
291 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL);
292 Dwfl_Module *mod = process_file (dwfl, name, file_name, fd, elf, predicate);
295 elf_end (elf);