Lines Matching refs:shdr
301 GElf_Shdr *shdr, Elf_Data **data) in get_sec() argument
309 if (gelf_getshdr(scn, shdr) != shdr) in get_sec()
312 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec()
313 if (!*shname || !shdr->sh_size) in get_sec()
324 GElf_Shdr *shdr, struct bpf_insn *insn, in parse_relo_and_apply() argument
329 nrels = shdr->sh_size / shdr->sh_entsize; in parse_relo_and_apply()
497 GElf_Shdr shdr, shdr_prog; in do_load_bpf_file() local
528 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
534 shdr.sh_link, (int) shdr.sh_flags); in do_load_bpf_file()
554 } else if (shdr.sh_type == SHT_SYMTAB) { in do_load_bpf_file()
555 strtabidx = shdr.sh_link; in do_load_bpf_file()
587 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()
590 if (shdr.sh_type == SHT_REL) { in do_load_bpf_file()
594 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog, in do_load_bpf_file()
605 if (parse_relo_and_apply(data, symbols, &shdr, insns, in do_load_bpf_file()
617 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in do_load_bpf_file()