Home
last modified time | relevance | path

Searched refs:st_shndx (Results 1 – 25 of 34) sorted by relevance

12

/linux-5.19.10/kernel/module/
Dkallsyms.c47 if (sym->st_shndx == SHN_UNDEF) in elf_type()
49 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type()
51 if (sym->st_shndx >= SHN_LORESERVE) in elf_type()
53 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
55 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type()
56 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type()
57 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type()
59 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
64 if (sechdrs[sym->st_shndx].sh_type == SHT_NOBITS) { in elf_type()
65 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
[all …]
/linux-5.19.10/arch/s390/kernel/
Dmachine_kexec_file.c328 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
330 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
335 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
340 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add()
341 sym->st_shndx != SHN_ABS) { in arch_kexec_apply_relocations_add()
343 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
352 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add()
353 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
Dmodule.c152 if (symbols[i].st_shndx == SHN_UNDEF && in module_frob_arch_sections()
156 symbols[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
/linux-5.19.10/scripts/mod/
Dmodpost.h172 if (is_shndx_special(sym->st_shndx)) in get_secindex()
173 return SPECIAL(sym->st_shndx); in get_secindex()
174 if (sym->st_shndx != SHN_XINDEX) in get_secindex()
175 return sym->st_shndx; in get_secindex()
Dmodpost.c553 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf()
616 switch (sym->st_shndx) { in handle_symbol()
1218 if (is_shndx_special(sym->st_shndx)) in find_elf_symbol2()
1754 if (is_shndx_special(sym->st_shndx)) in section_rela()
1814 if (is_shndx_special(sym->st_shndx)) in section_rel()
/linux-5.19.10/arch/x86/kernel/
Dmachine_kexec_64.c451 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
454 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
457 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
462 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
467 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
469 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
471 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
474 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
/linux-5.19.10/arch/x86/tools/
Drelocs.c355 if (sym->st_shndx != SHN_XINDEX) in sym_index()
356 return sym->st_shndx; in sym_index()
545 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs()
617 if (sym->st_shndx != SHN_ABS) { in print_absolute_symbols()
664 if (sym->st_shndx != SHN_ABS) { in print_absolute_relocs()
832 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64()
834 if (sym->st_shndx == SHN_UNDEF) in do_reloc64()
921 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32()
966 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc_real()
/linux-5.19.10/arch/riscv/kernel/
Delf_kexec.c375 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
381 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
383 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
385 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
388 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
/linux-5.19.10/arch/sparc/vdso/
Dvma.c131 osym->st_shndx = nsym->st_shndx; in patchsym64()
199 osym->st_shndx = nsym->st_shndx; in patchsym32()
/linux-5.19.10/arch/powerpc/kernel/
Dmodule_64.c244 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
248 syms[i].st_shndx = SHN_ABS; in dedotify()
266 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()
/linux-5.19.10/arch/sparc/kernel/
Dmodule.c75 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-5.19.10/tools/objtool/
Delf.c460 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols()
461 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols()
462 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols()
463 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols()
464 shndx = sym->sym.st_shndx; in read_symbols()
708 sym->sym.st_shndx = shndx; in elf_update_symbol()
712 sym->sym.st_shndx = SHN_XINDEX; in elf_update_symbol()
Dorc_dump.c168 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
/linux-5.19.10/arch/alpha/kernel/
Dmodule.c209 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add()
263 me->name, r_type, sym->st_shndx); in apply_relocate_add()
/linux-5.19.10/include/uapi/linux/
Delf.h194 Elf32_Half st_shndx; member
201 Elf64_Half st_shndx; /* Associated section index */ member
/linux-5.19.10/tools/lib/bpf/
Dlinker.c433 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()
1812 sym_is_extern = sym->st_shndx == SHN_UNDEF; in linker_append_elf_sym()
1819 } else if (sym->st_shndx < SHN_LORESERVE) { in linker_append_elf_sym()
1820 src_sec = &obj->secs[sym->st_shndx]; in linker_append_elf_sym()
1930 dst_sym->st_shndx = dst_sec->sec_idx; in linker_append_elf_sym()
1961 dst_sym->st_shndx = dst_sec ? dst_sec->sec_idx : sym->st_shndx; in linker_append_elf_sym()
[all …]
/linux-5.19.10/arch/mips/boot/tools/
Drelocs.c126 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-5.19.10/kernel/
Dkexec_file.c1060 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
1061 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
1063 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
1085 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1116 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
/linux-5.19.10/tools/perf/util/
Dgenelf.c89 .st_shndx = 0, /* for now */
96 .st_shndx = 1,
Dsymbol-elf.c136 sym->st_shndx != SHN_UNDEF; in elf_sym__is_function()
143 sym->st_shndx != SHN_UNDEF; in elf_sym__is_object()
150 sym->st_shndx != SHN_UNDEF && in elf_sym__is_label()
151 sym->st_shndx != SHN_ABS && in elf_sym__is_label()
1231 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { in dso__load_sym_internal()
1235 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, in dso__load_sym_internal()
1249 if (sym.st_shndx == SHN_ABS) in dso__load_sym_internal()
1252 sec = elf_getscn(syms_ss->elf, sym.st_shndx); in dso__load_sym_internal()
1278 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); in dso__load_sym_internal()
/linux-5.19.10/arch/arm64/kernel/
Dmodule-plts.c188 if (s->st_shndx == dstidx) in count_plts()
262 if (s->st_shndx == dstidx) in branch_rela_needs_plt()
/linux-5.19.10/arch/arc/kernel/
Dmodule.c86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name; in apply_relocate_add()
/linux-5.19.10/arch/mips/kernel/
Dvpe.c497 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-5.19.10/tools/testing/selftests/vDSO/
Dparse_vdso.c218 if (sym->st_shndx == SHN_UNDEF) in vdso_sym()
/linux-5.19.10/arch/s390/boot/
Dstartup.c94 if (dynsym[r_sym].st_shndx != SHN_UNDEF) in handle_relocs()

12