Lines Matching refs:shdr
171 GElf_Shdr *shdr, Elf_Data **data) in get_sec() argument
179 if (gelf_getshdr(scn, shdr) != shdr) in get_sec()
182 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec()
183 if (!*shname || !shdr->sh_size) in get_sec()
194 GElf_Shdr *shdr, struct bpf_insn *insn) in parse_relo_and_apply() argument
198 nrels = shdr->sh_size / shdr->sh_entsize; in parse_relo_and_apply()
228 GElf_Shdr shdr, shdr_prog; in load_bpf_file() local
253 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in load_bpf_file()
259 shdr.sh_link, (int) shdr.sh_flags); in load_bpf_file()
276 } else if (shdr.sh_type == SHT_SYMTAB) { in load_bpf_file()
284 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in load_bpf_file()
286 if (shdr.sh_type == SHT_REL) { in load_bpf_file()
289 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog, in load_bpf_file()
295 processed_sec[shdr.sh_info] = true; in load_bpf_file()
298 if (parse_relo_and_apply(data, symbols, &shdr, insns)) in load_bpf_file()
314 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in load_bpf_file()