Lines Matching refs:shdr_idx
4455 __u32 shdr_idx = sym->st_shndx; in bpf_program__record_reloc() local
4499 if (!shdr_idx || shdr_idx != obj->efile.text_shndx) { in bpf_program__record_reloc()
4500 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx)); in bpf_program__record_reloc()
4516 if (!shdr_idx || shdr_idx >= SHN_LORESERVE) { in bpf_program__record_reloc()
4518 prog->name, sym_name, shdr_idx); in bpf_program__record_reloc()
4539 type = bpf_object__section_to_libbpf_map_type(obj, shdr_idx); in bpf_program__record_reloc()
4540 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx)); in bpf_program__record_reloc()
4543 if (shdr_idx == obj->efile.arena_data_shndx) { in bpf_program__record_reloc()
4553 if (!bpf_object__shndx_is_maps(obj, shdr_idx)) { in bpf_program__record_reloc()
4582 if (!bpf_object__shndx_is_data(obj, shdr_idx)) { in bpf_program__record_reloc()
9727 unsigned int shdr_idx; in bpf_object__collect_st_ops_relos() local
9762 shdr_idx = sym->st_shndx; in bpf_object__collect_st_ops_relos()
9768 shdr_idx, (size_t)rel->r_offset, in bpf_object__collect_st_ops_relos()
9771 if (shdr_idx >= SHN_LORESERVE) { in bpf_object__collect_st_ops_relos()
9773 map->name, (size_t)rel->r_offset, shdr_idx); in bpf_object__collect_st_ops_relos()
9799 prog = find_prog_by_sec_insn(obj, shdr_idx, insn_idx); in bpf_object__collect_st_ops_relos()
9802 map->name, shdr_idx, name); in bpf_object__collect_st_ops_relos()