| /linux-6.15/kernel/module/ |
| H A D | kallsyms.c | 48 if (sym->st_shndx == SHN_UNDEF) in elf_type() 50 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type() 52 if (sym->st_shndx >= SHN_LORESERVE) in elf_type() 56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type() 84 if (src->st_shndx == SHN_UNDEF || in is_core_symbol() 85 src->st_shndx >= shnum || in is_core_symbol() 90 if (src->st_shndx == pcpundx) in is_core_symbol() 94 sec = sechdrs + src->st_shndx; in is_core_symbol() 281 if (sym->st_shndx == SHN_UNDEF) in find_kallsyms_symbol() 413 sym->st_shndx != SHN_UNDEF) in __find_kallsyms_symbol_value() [all …]
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | machine_kexec_file.c | 339 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 341 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 346 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 351 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add() 352 sym->st_shndx != SHN_ABS) { in arch_kexec_apply_relocations_add() 354 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 363 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 364 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
| H A D | module.c | 138 if (symbols[i].st_shndx == SHN_UNDEF && in module_frob_arch_sections() 142 symbols[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | machine_kexec_64.c | 491 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 494 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 497 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 502 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 507 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() 509 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 511 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 514 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
| /linux-6.15/arch/x86/tools/ |
| H A D | relocs.c | 336 if (sym->st_shndx != SHN_XINDEX) in sym_index() 337 return sym->st_shndx; in sym_index() 509 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 584 if (sym->st_shndx != SHN_ABS) in print_absolute_symbols() 643 if (sym->st_shndx != SHN_ABS) in print_absolute_relocs() 746 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64() 747 if (sym->st_shndx == SHN_UNDEF) in do_reloc64() 821 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32() 863 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc_real()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | elf_kexec.c | 402 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 408 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() 410 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 412 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 415 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
| /linux-6.15/arch/sparc/vdso/ |
| H A D | vma.c | 131 osym->st_shndx = nsym->st_shndx; in patchsym64() 199 osym->st_shndx = nsym->st_shndx; in patchsym32()
|
| /linux-6.15/tools/objtool/ |
| H A D | elf.c | 490 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols() 491 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols() 492 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols() 493 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols() 494 shndx = sym->sym.st_shndx; in read_symbols() 604 bool is_special_shndx = sym->sym.st_shndx >= SHN_LORESERVE && in elf_update_symbol() 605 sym->sym.st_shndx != SHN_XINDEX; in elf_update_symbol() 608 shndx = sym->sym.st_shndx; in elf_update_symbol() 707 sym->sym.st_shndx = shndx; in elf_update_symbol() 711 sym->sym.st_shndx = SHN_XINDEX; in elf_update_symbol()
|
| H A D | orc_dump.c | 120 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | module.c | 45 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 47 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | module_64.c | 285 if (sym->st_shndx == pcpu && in count_pcpu_relocs() 395 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify() 399 syms[i].st_shndx = SHN_ABS; in dedotify() 417 if (syms[i].st_shndx == SHN_ABS in find_dot_toc() 914 if (sym->st_shndx == SHN_UNDEF || in apply_relocate_add() 915 sym->st_shndx == SHN_LIVEPATCH) { in apply_relocate_add() 968 if (sym->st_shndx != me->arch.pcpu_section) { in apply_relocate_add()
|
| /linux-6.15/arch/alpha/kernel/ |
| H A D | module.c | 207 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add() 261 me->name, r_type, sym->st_shndx); in apply_relocate_add()
|
| /linux-6.15/arch/mips/boot/tools/ |
| H A D | relocs.c | 126 name = sec_name(sym->st_shndx); in sym_name() 347 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 649 sec_name(sym->st_shndx)); in do_reloc_info()
|
| /linux-6.15/kernel/ |
| H A D | kexec_file.c | 1122 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 1123 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 1125 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1147 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr() 1178 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | elf.h | 202 Elf32_Half st_shndx; member 209 Elf64_Half st_shndx; /* Associated section index */ member
|
| /linux-6.15/scripts/gendwarfksyms/ |
| H A D | symbols.c | 263 if (sym->st_shndx != SHN_XINDEX) in elf_for_each_global() 264 xndx = sym->st_shndx; in elf_for_each_global()
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | linker.c | 484 init_sym->st_shndx = SHN_UNDEF; in init_output_elf() 944 || sym->st_other != 0 || sym->st_shndx != 0 in linker_sanity_check_elf_symtab() 961 if (sym->st_shndx == 0) { in linker_sanity_check_elf_symtab() 971 if (sym->st_shndx < SHN_LORESERVE && sym->st_shndx >= obj->sec_cnt) { in linker_sanity_check_elf_symtab() 2011 sym_is_extern = sym->st_shndx == SHN_UNDEF; in linker_append_elf_sym() 2018 } else if (sym->st_shndx < SHN_LORESERVE) { in linker_append_elf_sym() 2019 src_sec = &obj->secs[sym->st_shndx]; in linker_append_elf_sym() 2129 dst_sym->st_shndx = dst_sec->sec_idx; in linker_append_elf_sym() 2160 dst_sym->st_shndx = dst_sec ? dst_sec->sec_idx : sym->st_shndx; in linker_append_elf_sym() 2257 struct src_sec *sec = &obj->secs[src_sym->st_shndx]; in linker_append_elf_relos() [all …]
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | module-plts.c | 182 if (s->st_shndx == dstidx) in count_plts() 255 if (s->st_shndx == dstidx) in branch_rela_needs_plt()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | elf.h | 202 Elf32_Half st_shndx; member 209 Elf64_Half st_shndx; /* Associated section index */ member
|
| /linux-6.15/arch/arc/kernel/ |
| H A D | module.c | 86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name; in apply_relocate_add()
|
| /linux-6.15/tools/perf/util/ |
| H A D | genelf.c | 81 .st_shndx = 0, /* for now */ 88 .st_shndx = 1,
|
| H A D | symbol-elf.c | 127 sym->st_shndx != SHN_UNDEF; in elf_sym__is_function() 134 sym->st_shndx != SHN_UNDEF; in elf_sym__is_object() 141 sym->st_shndx != SHN_UNDEF && in elf_sym__is_label() 142 sym->st_shndx != SHN_ABS && in elf_sym__is_label() 1736 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { in dso__load_sym_internal() 1740 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, in dso__load_sym_internal() 1754 if (sym.st_shndx == SHN_ABS) in dso__load_sym_internal() 1757 sec = elf_getscn(syms_ss->elf, sym.st_shndx); in dso__load_sym_internal() 1783 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); in dso__load_sym_internal()
|
| /linux-6.15/arch/mips/kernel/ |
| H A D | vpe.c | 496 switch (sym[i].st_shndx) { in simplify_symbols() 518 strtab + sym[i].st_name, sym[i].st_shndx); in simplify_symbols() 523 secbase = sechdrs[sym[i].st_shndx].sh_addr; in simplify_symbols()
|
| /linux-6.15/scripts/mod/ |
| H A D | modpost.h | 167 unsigned int index = sym->st_shndx; in get_secindex()
|
| /linux-6.15/tools/testing/selftests/vDSO/ |
| H A D | parse_vdso.c | 292 if (sym->st_shndx != SHN_UNDEF && in vdso_sym()
|