Lines Matching refs:elf
300 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, in get_sec() argument
305 scn = elf_getscn(elf, i); in get_sec()
312 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec()
384 Elf *elf, Elf_Data *symbols, int strtabidx) in load_elf_maps_section() argument
400 scn = elf_getscn(elf, maps_shndx); in load_elf_maps_section()
459 map_name = elf_strptr(elf, strtabidx, sym[i].st_name); in load_elf_maps_section()
495 Elf *elf; in do_load_bpf_file() local
514 elf = elf_begin(fd, ELF_C_READ, NULL); in do_load_bpf_file()
516 if (!elf) in do_load_bpf_file()
519 if (gelf_getehdr(elf, &ehdr) != &ehdr) in do_load_bpf_file()
528 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
569 elf, symbols, strtabidx); in do_load_bpf_file()
587 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
594 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog, in do_load_bpf_file()
617 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()