Lines Matching refs:shdr
138 GElf_Shdr *shdr, Elf_Data **data) in get_sec() argument
146 if (gelf_getshdr(scn, shdr) != shdr) in get_sec()
149 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name); in get_sec()
150 if (!*shname || !shdr->sh_size) in get_sec()
161 GElf_Shdr *shdr, struct bpf_insn *insn) in parse_relo_and_apply() argument
165 nrels = shdr->sh_size / shdr->sh_entsize; in parse_relo_and_apply()
195 GElf_Shdr shdr, shdr_prog; in load_bpf_file() local
220 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in load_bpf_file()
226 shdr.sh_link, (int) shdr.sh_flags); in load_bpf_file()
243 } else if (shdr.sh_type == SHT_SYMTAB) { in load_bpf_file()
251 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in load_bpf_file()
253 if (shdr.sh_type == SHT_REL) { in load_bpf_file()
256 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog, in load_bpf_file()
262 processed_sec[shdr.sh_info] = true; in load_bpf_file()
265 if (parse_relo_and_apply(data, symbols, &shdr, insns)) in load_bpf_file()
281 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) in load_bpf_file()