Lines Matching refs:elf
316 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname, in get_sec() argument
321 scn = elf_getscn(elf, i); in get_sec()
328 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec()
400 Elf *elf, Elf_Data *symbols, int strtabidx) in load_elf_maps_section() argument
416 scn = elf_getscn(elf, maps_shndx); in load_elf_maps_section()
475 map_name = elf_strptr(elf, strtabidx, sym[i].st_name); in load_elf_maps_section()
511 Elf *elf; in do_load_bpf_file() local
530 elf = elf_begin(fd, ELF_C_READ, NULL); in do_load_bpf_file()
532 if (!elf) in do_load_bpf_file()
535 if (gelf_getehdr(elf, &ehdr) != &ehdr) in do_load_bpf_file()
544 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
585 elf, symbols, strtabidx); in do_load_bpf_file()
603 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
610 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog, in do_load_bpf_file()
633 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()