Lines Matching defs:elf

32 #include ELFUTILS_HEADER(elf)
121 static Elf *elf;
137 elf = dwelf_elf_begin (file_fd);
139 elf = elf_begin (file_fd, ELF_C_READ, NULL);
141 if (elf == NULL)
154 if (elf != NULL)
156 elf_end (elf);
157 elf = NULL;
233 int kind = elf_kind (elf);
241 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_storage);
253 if (elf_getphdrnum (elf, &nphdrs) != 0)
261 GElf_Phdr *phdr = gelf_getphdr (elf, phdr_idx, &phdr_storage);
282 if (elf_getshdrnum (elf, &nshdrs) != 0)
293 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0))
302 scn = elf_nextscn (elf, scn);
312 const char *section_name = elf_strptr (elf, shstrndx, shdr->sh_name);
364 Elf_Data *data = elf_getdata_rawchunk (elf, dyn_seg.p_offset,
429 return elf_kind (elf) != ELF_K_NONE;
435 return elf_kind (elf) == ELF_K_ELF;
441 return elf_kind (elf) == ELF_K_AR;
447 return elf_kind (elf) == ELF_K_ELF && elf_type == ET_CORE;
457 return elf_kind (elf) == ELF_K_ELF
468 return elf_kind (elf) != ELF_K_NONE
480 return elf_kind (elf) != ELF_K_NONE
611 return (elf_kind (elf) == ELF_K_ELF
766 fprintf (stderr, "debug: %s: elf\n", current_path);
877 { "elf", classify_check_offset + classify_elf, NULL, 0,
880 { "elf-file", classify_check_offset + classify_elf_file, NULL, 0,
883 { "elf-archive", classify_check_offset + classify_elf_archive, NULL, 0,
914 { "not-elf", classify_check_not_offset + classify_elf,
916 { "not-elf-file", classify_check_not_offset + classify_elf_file,
918 { "not-elf-archive", classify_check_not_offset + classify_elf_archive,
1020 disable with --not-elf. */