Lines Matching defs:elf
1569 Elf *elf = elf_begin (elf_fd, ELF_C_READ_MMAP_PRIVATE, NULL);
1570 if (elf == NULL)
1577 int rc = elf_getshdrstrndx (elf, &shstrndx);
1584 scn = elf_nextscn (elf, scn);
1592 const char *scn_name = elf_strptr (elf, shstrndx, shdr->sh_name);
1645 elf_end (elf);
2724 dwarf_extract_source_paths (Elf *elf, set<string>& debug_sourcefiles)
2727 Dwarf* dbg = dwarf_begin_elf (elf, DWARF_C_READ, NULL);
2895 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL);
2896 if (elf == NULL)
2901 if (elf_kind (elf) != ELF_K_ELF)
2903 elf_end (elf);
2908 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_storage);
2911 elf_end (elf);
2917 ssize_t sz = dwelf_elf_gnu_build_id (elf, & build_id);
2920 // It's not a diagnostic-worthy error for an elf file to lack build-id.
2922 elf_end (elf);
2939 int rc = elf_getshdrnum (elf, &shnum);
2946 Elf_Scn *scn = elf_getscn (elf, sc);
2969 int rc = elf_getshdrstrndx (elf, &shstrndx);
2978 scn = elf_nextscn (elf, scn);
2985 const char *section_name = elf_strptr (elf, shstrndx, shdr->sh_name);
2993 dwarf_extract_source_paths (elf, debug_sourcefiles);
3014 // For more expansive elf/split-debuginfo classification, we
3025 elf_end (elf);
3051 // specifically, no need to elf-begin a file we already determined is non-elf
3074 // cache the corrupt-elf case (!executable_p &&
3093 // no point storing an elf file without buildid