/kernel/linux/linux-6.6/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() 54 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type() 56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type() 57 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type() 58 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type() 60 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type() 65 if (sechdrs[sym->st_shndx] in elf_type() [all...] |
/kernel/linux/linux-5.10/scripts/mod/ |
H A D | modpost.h | 155 /* if Nth symbol table entry has .st_shndx = SHN_XINDEX, 173 /* Accessor for sym->st_shndx, hides ugliness of "64k sections" */ 177 if (is_shndx_special(sym->st_shndx)) in get_secindex() 178 return SPECIAL(sym->st_shndx); in get_secindex() 179 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 180 return sym->st_shndx; in get_secindex()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 302 if (sym->st_shndx == SHN_UNDEF) in arch_kexec_apply_relocations_add() 305 if (sym->st_shndx == SHN_COMMON) in arch_kexec_apply_relocations_add() 308 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add() 309 sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 317 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 318 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | machine_kexec_64.c | 480 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 483 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 486 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 491 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 496 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() 498 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 500 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 503 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 329 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 331 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 336 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 341 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add() 342 sym->st_shndx != SHN_ABS) { in arch_kexec_apply_relocations_add() 344 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 353 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 354 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | machine_kexec_64.c | 440 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 443 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 446 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 451 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 456 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() 458 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 460 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 463 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/arch/x86/tools/ |
H A D | relocs.c | 268 name = sec_name(sym->st_shndx); in sym_name() 495 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 561 if (sym->st_shndx != SHN_ABS) { in print_absolute_symbols() 608 if (sym->st_shndx != SHN_ABS) { in print_absolute_relocs() 762 return (sym->st_shndx == per_cpu_shndx) && in ElfW() 774 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64() 776 if (sym->st_shndx == SHN_UNDEF) in do_reloc64() 863 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32() 908 int shn_abs = (sym->st_shndx in do_reloc_real() [all...] |
/kernel/linux/linux-6.6/arch/x86/tools/ |
H A D | relocs.c | 356 if (sym->st_shndx != SHN_XINDEX) in sym_index() 357 return sym->st_shndx; in sym_index() 546 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 618 if (sym->st_shndx != SHN_ABS) { in print_absolute_symbols() 673 if (sym->st_shndx != SHN_ABS) { in print_absolute_relocs() 841 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64() 843 if (sym->st_shndx == SHN_UNDEF) in do_reloc64() 930 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32() 975 int shn_abs = (sym->st_shndx in do_reloc_real() [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | elf_kexec.c | 395 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 401 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() 403 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 405 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 408 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/tools/objtool/ |
H A D | elf.c | 422 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols() 423 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols() 424 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols() 425 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols() 426 shndx = sym->sym.st_shndx; in read_symbols() 581 bool is_special_shndx = sym->sym.st_shndx >= SHN_LORESERVE && in elf_update_symbol() 582 sym->sym.st_shndx != SHN_XINDEX; in elf_update_symbol() 585 shndx = sym->sym.st_shndx; in elf_update_symbol() 672 sym->sym.st_shndx = shndx; in elf_update_symbol() 676 sym->sym.st_shndx in elf_update_symbol() [all...] |
/kernel/linux/linux-6.6/tools/objtool/ |
H A D | elf.c | 488 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols() 489 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols() 490 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols() 491 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols() 492 shndx = sym->sym.st_shndx; in read_symbols() 605 bool is_special_shndx = sym->sym.st_shndx >= SHN_LORESERVE && in elf_update_symbol() 606 sym->sym.st_shndx != SHN_XINDEX; in elf_update_symbol() 609 shndx = sym->sym.st_shndx; in elf_update_symbol() 708 sym->sym.st_shndx = shndx; in elf_update_symbol() 712 sym->sym.st_shndx in elf_update_symbol() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | module_64.c | 275 if (sym->st_shndx == pcpu && in count_pcpu_relocs() 367 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify() 371 syms[i].st_shndx = SHN_ABS; in dedotify() 389 if (syms[i].st_shndx == SHN_ABS in find_dot_toc() 885 if (sym->st_shndx == SHN_UNDEF || in apply_relocate_add() 886 sym->st_shndx == SHN_LIVEPATCH) { in apply_relocate_add() 939 if (sym->st_shndx != me->arch.pcpu_section) { in apply_relocate_add()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | module_64.c | 259 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify() 263 syms[i].st_shndx = SHN_ABS; in dedotify() 281 if (syms[i].st_shndx == SHN_ABS in find_dot_toc() 634 if (sym->st_shndx == SHN_UNDEF || in apply_relocate_add() 635 sym->st_shndx == SHN_LIVEPATCH) { in apply_relocate_add()
|
H A D | vdso.c | 314 sym32_gen->st_shndx = sym32_fix->st_shndx; in vdso_do_func_patch32() 420 sym64_gen->st_shndx = sym64_fix->st_shndx; in vdso_do_func_patch64()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | module.c | 2375 switch (sym[i].st_shndx) { in simplify_symbols() 2420 if (sym[i].st_shndx == info->index.pcpu) in simplify_symbols() 2423 secbase = info->sechdrs[sym[i].st_shndx].sh_addr; in simplify_symbols() 2699 if (sym->st_shndx == SHN_UNDEF) in elf_type() 2701 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type() 2703 if (sym->st_shndx >= SHN_LORESERVE) in elf_type() 2705 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type() 2707 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type() 2708 && sechdrs[sym->st_shndx] in elf_type() [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | module.c | 75 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 77 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | module.c | 75 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 77 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
|
/kernel/linux/linux-5.10/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() 644 sec_name(sym->st_shndx)); in do_reloc_info()
|
/kernel/linux/linux-6.6/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() 644 sec_name(sym->st_shndx)); in do_reloc_info()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | linker.c | 433 init_sym->st_shndx = SHN_UNDEF; in init_output_elf() 795 || sym->st_other != 0 || sym->st_shndx != 0 in linker_sanity_check_elf_symtab() 812 if (sym->st_shndx == 0) { in linker_sanity_check_elf_symtab() 822 if (sym->st_shndx < SHN_LORESERVE && sym->st_shndx >= obj->sec_cnt) { in linker_sanity_check_elf_symtab() 824 i, sec->sec_idx, (size_t)sym->st_shndx, obj->filename); in linker_sanity_check_elf_symtab() 1826 sym_is_extern = sym->st_shndx == SHN_UNDEF; in linker_append_elf_sym() 1833 } else if (sym->st_shndx < SHN_LORESERVE) { in linker_append_elf_sym() 1834 src_sec = &obj->secs[sym->st_shndx]; in linker_append_elf_sym() 1944 dst_sym->st_shndx in linker_append_elf_sym() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_file.c | 1086 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 1087 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 1089 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1111 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr() 1142 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|