Lines Matching defs:shdr_idx
3343 __u32 shdr_idx = sym->st_shndx;
3357 if (!shdr_idx || shdr_idx != obj->efile.text_shndx) {
3358 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx));
3403 if (!shdr_idx || shdr_idx >= SHN_LORESERVE) {
3405 prog->name, sym_name, shdr_idx);
3409 type = bpf_object__section_to_libbpf_map_type(obj, shdr_idx);
3410 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx));
3414 if (!bpf_object__shndx_is_maps(obj, shdr_idx)) {
3443 if (!bpf_object__shndx_is_data(obj, shdr_idx)) {
8563 unsigned int shdr_idx;
8598 shdr_idx = sym.st_shndx;
8600 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",
8604 shdr_idx, (size_t)rel.r_offset,
8607 if (shdr_idx >= SHN_LORESERVE) {
8608 pr_warn("struct_ops reloc %s: rel.r_offset %zu shdr_idx %u unsupported non-static function\n",
8609 map->name, (size_t)rel.r_offset, shdr_idx);
8634 prog = find_prog_by_sec_insn(obj, shdr_idx, insn_idx);
8636 pr_warn("struct_ops reloc %s: cannot find prog at shdr_idx %u to relocate func ptr %s\n",
8637 map->name, shdr_idx, name);