Lines Matching defs:shdr_idx
4056 __u32 shdr_idx = sym->st_shndx;
4100 if (!shdr_idx || shdr_idx != obj->efile.text_shndx) {
4101 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx));
4117 if (!shdr_idx || shdr_idx >= SHN_LORESERVE) {
4119 prog->name, sym_name, shdr_idx);
4140 type = bpf_object__section_to_libbpf_map_type(obj, shdr_idx);
4141 sym_sec_name = elf_sec_name(obj, elf_sec_by_idx(obj, shdr_idx));
4145 if (!bpf_object__shndx_is_maps(obj, shdr_idx)) {
4174 if (!bpf_object__shndx_is_data(obj, shdr_idx)) {
9131 unsigned int shdr_idx;
9166 shdr_idx = sym->st_shndx;
9168 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",
9172 shdr_idx, (size_t)rel->r_offset,
9175 if (shdr_idx >= SHN_LORESERVE) {
9176 pr_warn("struct_ops reloc %s: rel->r_offset %zu shdr_idx %u unsupported non-static function\n",
9177 map->name, (size_t)rel->r_offset, shdr_idx);
9202 prog = find_prog_by_sec_insn(obj, shdr_idx, insn_idx);
9204 pr_warn("struct_ops reloc %s: cannot find prog at shdr_idx %u to relocate func ptr %s\n",
9205 map->name, shdr_idx, name);