Lines Matching refs:sec_idx
40 size_t sec_idx; member
109 size_t sec_idx; member
365 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf()
366 linker->elf_hdr->e_shstrndx = sec->sec_idx; in init_output_elf()
367 linker->strtab_sec_idx = sec->sec_idx; in init_output_elf()
404 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf()
405 linker->symtab_sec_idx = sec->sec_idx; in init_output_elf()
601 size_t sec_idx = elf_ndxscn(scn); in linker_load_obj_file() local
608 sec_idx, filename); in linker_load_obj_file()
616 sec_idx, filename); in linker_load_obj_file()
624 sec_idx, sec_name, filename); in linker_load_obj_file()
635 sec->sec_idx = elf_ndxscn(scn); in linker_load_obj_file()
649 obj->symtab_sec_idx = sec_idx; in linker_load_obj_file()
686 sec_idx, sec_name, filename); in linker_load_obj_file()
718 pr_warn("ELF section #%zu has empty name in %s\n", sec->sec_idx, obj->filename); in linker_sanity_check_elf()
755 sec->sec_idx, sec->sec_name, (size_t)sec->shdr->sh_type, obj->filename); in linker_sanity_check_elf()
776 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_symtab()
782 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_symtab()
804 i, sec->sec_idx, sym_bind); in linker_sanity_check_elf_symtab()
809 i, sec->sec_idx, sym_vis); in linker_sanity_check_elf_symtab()
824 i, sec->sec_idx, (size_t)sym->st_shndx, obj->filename); in linker_sanity_check_elf_symtab()
851 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_relos()
858 sec->sec_idx, (size_t)sec->shdr->sh_info, obj->filename); in linker_sanity_check_elf_relos()
867 sec->sec_idx, obj->filename); in linker_sanity_check_elf_relos()
878 sec->sec_idx, (size_t)sec->shdr->sh_info, obj->filename); in linker_sanity_check_elf_relos()
893 i, sec->sec_idx, sym_type, obj->filename); in linker_sanity_check_elf_relos()
899 i, sec->sec_idx, sym_idx, obj->filename); in linker_sanity_check_elf_relos()
906 i, sec->sec_idx, sym_idx, obj->filename); in linker_sanity_check_elf_relos()
986 dst_sec->sec_idx = 0; in init_sec()
1006 dst_sec->sec_idx = elf_ndxscn(scn); in init_sec()
1932 dst_sym->st_shndx = dst_sec->sec_idx; in linker_append_elf_sym()
1963 dst_sym->st_shndx = dst_sec ? dst_sec->sec_idx : sym->st_shndx; in linker_append_elf_sym()
2041 dst_sec->shdr->sh_info = dst_linked_sec->sec_idx; in linker_append_elf_relos()
2097 static Elf64_Sym *find_sym_by_name(struct src_obj *obj, size_t sec_idx, in find_sym_by_name() argument
2107 if (sym->st_shndx != sec_idx) in find_sym_by_name()
2182 sec->sec_idx = 0; /* will match UNDEF shndx in ELF */ in linker_fixup_btf()
2200 sym = find_sym_by_name(obj, sec->sec_idx, STT_OBJECT, var_name); in linker_fixup_btf()
2579 if (sec->sec_idx == linker->strtab_sec_idx) in bpf_linker__finalize()