Lines Matching defs:elf

126 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes)
139 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem);
255 Elf *elf, GElf_Off start, int *pndx,
264 if (unlikely (gelf_getphdr (elf, (*pndx)++, pphdr) == NULL))
280 #define more(size) do_more (size, &phdr, align, elf, start, &ndx, &end, &end_vaddr)
289 Elf *elf = arg;
294 if (elf->map_address == NULL)
305 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
324 if (elf->map_address != NULL && start < elf->maximum_size)
325 (void) more (elf->maximum_size - start);
329 if (unlikely (end > elf->maximum_size))
330 end = elf->maximum_size;
339 if (elf->map_address != NULL)
341 void *contents = elf->map_address + elf->start_offset + start;
379 ssize_t nread = pread_retry (elf->fildes, into, *buffer_available, start);
418 elf_end (module->elf);
427 __libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp)
430 if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
435 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
449 dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable)
452 if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
494 int ndx = dwfl_report_core_segments (dwfl, elf, phnum, &notes_phdr);
516 Elf_Data *notes = elf_getdata_rawchunk (elf,
553 dwfl_elf_phdr_memory_callback, elf,
564 &dwfl_elf_phdr_memory_callback, elf,
565 core_file_read_eagerly, elf,
566 elf->maximum_size,
593 if (module->elf == NULL)
596 if (! __libdwfl_dynamic_vaddr_get (module->elf, &file_dynamic_vaddr))
600 module->fd, module->elf,
606 module->elf = NULL;
637 int _compat_without_executable_dwfl_core_file_report (Dwfl *dwfl, Elf *elf);
642 _compat_without_executable_dwfl_core_file_report (Dwfl *dwfl, Elf *elf)
644 return dwfl_core_file_report (dwfl, elf, NULL);