Lines Matching refs:elf
95 Elf *elf;
141 elf = NULL;
150 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
156 if ((kind = elf_kind(elf)) != ELF_K_ELF) {
165 if (gelf_getehdr(elf, &ehdr) == NULL) {
182 if (!print_file_features(elf, ehdr.e_phnum, fd,
187 } else if (!edit_file_features(elf, ehdr.e_phnum, fd,
193 if (elf != NULL)
194 elf_end(elf);
298 edit_file_features(Elf *elf, int phcount, int fd, char *val, bool endian_swap)
303 if (!get_file_features(elf, phcount, fd, &features, &off,
340 print_file_features(Elf *elf, int phcount, int fd, char *filename,
346 if (!get_file_features(elf, phcount, fd, &features, NULL,
365 get_file_features(Elf *elf, int phcount, int fd, uint32_t *features,
379 if (gelf_getphdr(elf, i, &phdr) == NULL) {
396 warnx("elf note header too short");
419 warnx("elf note name too short");