Lines Matching refs:elf
92 Elf *elf; in main() local
138 elf = NULL; in main()
147 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in main()
153 if ((kind = elf_kind(elf)) != ELF_K_ELF) { in main()
162 if (gelf_getehdr(elf, &ehdr) == NULL) { in main()
179 if (!print_file_features(elf, ehdr.e_phnum, fd, in main()
184 } else if (!edit_file_features(elf, ehdr.e_phnum, fd, in main()
190 if (elf != NULL) in main()
191 elf_end(elf); in main()
295 edit_file_features(Elf *elf, int phcount, int fd, char *val, bool endian_swap) in edit_file_features() argument
300 if (!get_file_features(elf, phcount, fd, &features, &off, in edit_file_features()
337 print_file_features(Elf *elf, int phcount, int fd, char *filename, in print_file_features() argument
343 if (!get_file_features(elf, phcount, fd, &features, NULL, in print_file_features()
362 get_file_features(Elf *elf, int phcount, int fd, uint32_t *features, in get_file_features() argument
376 if (gelf_getphdr(elf, i, &phdr) == NULL) { in get_file_features()