| /Linux-v5.10/scripts/mod/ |
| D | modpost.h | 176 if (is_shndx_special(sym->st_shndx)) in get_secindex() 177 return SPECIAL(sym->st_shndx); in get_secindex() 178 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 179 return sym->st_shndx; in get_secindex()
|
| D | modpost.c | 624 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 685 if (sym->st_shndx == SHN_UNDEF) { in handle_modversion() 691 if (sym->st_shndx == SHN_ABS) { in handle_modversion() 714 switch (sym->st_shndx) { in handle_symbol() 1357 if (is_shndx_special(sym->st_shndx)) in find_elf_symbol2() 1882 if (is_shndx_special(sym->st_shndx)) in section_rela() 1942 if (is_shndx_special(sym->st_shndx)) in section_rel()
|
| /Linux-v5.10/arch/s390/kernel/ |
| D | machine_kexec_file.c | 284 if (sym->st_shndx == SHN_UNDEF) in arch_kexec_apply_relocations_add() 287 if (sym->st_shndx == SHN_COMMON) in arch_kexec_apply_relocations_add() 290 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add() 291 sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 299 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 300 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
| D | module.c | 141 if (symbols[i].st_shndx == SHN_UNDEF && in module_frob_arch_sections() 145 symbols[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
|
| /Linux-v5.10/arch/x86/kernel/ |
| 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()
|
| /Linux-v5.10/arch/x86/tools/ |
| 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 is_percpu_sym() 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() 906 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc_real() 1091 sec_name(sym->st_shndx)); in do_reloc_info()
|
| /Linux-v5.10/arch/sparc/vdso/ |
| D | vma.c | 131 osym->st_shndx = nsym->st_shndx; in patchsym64() 199 osym->st_shndx = nsym->st_shndx; in patchsym32()
|
| /Linux-v5.10/arch/powerpc/kernel/ |
| 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()
|
| 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()
|
| /Linux-v5.10/arch/sparc/kernel/ |
| 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()
|
| /Linux-v5.10/kernel/ |
| D | module.c | 2333 switch (sym[i].st_shndx) { in simplify_symbols() 2376 if (sym[i].st_shndx == info->index.pcpu) in simplify_symbols() 2379 secbase = info->sechdrs[sym[i].st_shndx].sh_addr; in simplify_symbols() 2655 if (sym->st_shndx == SHN_UNDEF) in elf_type() 2657 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type() 2659 if (sym->st_shndx >= SHN_LORESERVE) in elf_type() 2661 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type() 2663 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type() 2664 && sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type() 2665 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type() [all …]
|
| D | kexec_file.c | 1094 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 1095 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 1097 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1119 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr() 1150 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
|
| /Linux-v5.10/arch/alpha/kernel/ |
| D | module.c | 209 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add() 263 me->name, r_type, sym->st_shndx); in apply_relocate_add()
|
| /Linux-v5.10/include/uapi/linux/ |
| D | elf.h | 190 Elf32_Half st_shndx; member 197 Elf64_Half st_shndx; /* Associated section index */ member
|
| /Linux-v5.10/arch/mips/boot/tools/ |
| 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()
|
| /Linux-v5.10/tools/objtool/ |
| D | elf.c | 394 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols() 395 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols() 396 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols() 397 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols() 398 shndx = sym->sym.st_shndx; in read_symbols()
|
| D | orc_dump.c | 167 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
|
| /Linux-v5.10/arch/arm64/kernel/ |
| D | module-plts.c | 188 if (s->st_shndx == dstidx) in count_plts() 262 if (s->st_shndx == dstidx) in branch_rela_needs_plt()
|
| /Linux-v5.10/tools/perf/util/ |
| D | genelf.c | 85 .st_shndx = 0, /* for now */ 92 .st_shndx = 1,
|
| D | symbol-elf.c | 135 sym->st_shndx != SHN_UNDEF; in elf_sym__is_function() 142 sym->st_shndx != SHN_UNDEF; in elf_sym__is_object() 149 sym->st_shndx != SHN_UNDEF && in elf_sym__is_label() 150 sym->st_shndx != SHN_ABS && in elf_sym__is_label() 1176 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { in dso__load_sym() 1180 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, in dso__load_sym() 1193 if (sym.st_shndx == SHN_ABS) in dso__load_sym() 1196 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); in dso__load_sym()
|
| /Linux-v5.10/arch/arc/kernel/ |
| D | module.c | 86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name; in apply_relocate_add()
|
| /Linux-v5.10/arch/mips/kernel/ |
| D | vpe.c | 497 switch (sym[i].st_shndx) { in simplify_symbols() 519 strtab + sym[i].st_name, sym[i].st_shndx); in simplify_symbols() 524 secbase = sechdrs[sym[i].st_shndx].sh_addr; in simplify_symbols()
|
| /Linux-v5.10/arch/s390/boot/ |
| D | startup.c | 105 if (dynsym[r_sym].st_shndx != SHN_UNDEF) in handle_relocs()
|
| /Linux-v5.10/tools/testing/selftests/vDSO/ |
| D | parse_vdso.c | 218 if (sym->st_shndx == SHN_UNDEF) in vdso_sym()
|
| /Linux-v5.10/arch/arm/kernel/ |
| D | module-plts.c | 163 if (s->st_shndx == dstidx) in count_plts()
|