Lines Matching refs:shdr_idx
4440 __u32 shdr_idx = sym->st_shndx;
4484 if (!shdr_idx || shdr_idx != obj->efile.text_shndx) {
4486 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx));
4488 sym_sec_name = elf_sec_name_by_idx(obj, shdr_idx);
4505 if (!shdr_idx || shdr_idx >= SHN_LORESERVE) {
4507 prog->name, sym_name, shdr_idx);
4528 type = bpf_object__section_to_libbpf_map_type(obj, shdr_idx);
4530 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx));
4532 sym_sec_name = elf_sec_name_by_idx(obj, shdr_idx);
4536 if (!bpf_object__shndx_is_maps(obj, shdr_idx)) {
4565 if (!bpf_object__shndx_is_data(obj, shdr_idx)) {
9587 unsigned int shdr_idx;
9622 shdr_idx = sym->st_shndx;
9624 pr_debug("struct_ops reloc %s: for %lld value %lld shdr_idx %u rel->r_offset %zu map->sec_offset %zu name %d (\'%s\')\n",
9628 shdr_idx, (size_t)rel->r_offset,
9631 if (shdr_idx >= SHN_LORESERVE) {
9632 pr_warn("struct_ops reloc %s: rel->r_offset %zu shdr_idx %u unsupported non-static function\n",
9633 map->name, (size_t)rel->r_offset, shdr_idx);
9658 prog = find_prog_by_sec_insn(obj, shdr_idx, insn_idx);
9660 pr_warn("struct_ops reloc %s: cannot find prog at shdr_idx %u to relocate func ptr %s\n",
9661 map->name, shdr_idx, name);