Home
last modified time | relevance | path

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

12

/linux-6.12.1/kernel/module/
Dkallsyms.c48 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].sh_type == SHT_NOBITS) { in elf_type()
66 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) in elf_type()
[all …]
/linux-6.12.1/arch/s390/kernel/
Dmachine_kexec_file.c339 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()
Dmodule.c138 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.12.1/arch/x86/kernel/
Dmachine_kexec_64.c471 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
474 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
477 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
482 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
487 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
489 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
491 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
494 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
/linux-6.12.1/arch/x86/tools/
Drelocs.c361 if (sym->st_shndx != SHN_XINDEX) in sym_index()
362 return sym->st_shndx; in sym_index()
534 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs()
609 if (sym->st_shndx != SHN_ABS) in print_absolute_symbols()
668 if (sym->st_shndx != SHN_ABS) in print_absolute_relocs()
846 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64()
848 if (sym->st_shndx == SHN_UNDEF) in do_reloc64()
932 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32()
974 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc_real()
/linux-6.12.1/arch/riscv/kernel/
Delf_kexec.c402 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.12.1/arch/sparc/vdso/
Dvma.c131 osym->st_shndx = nsym->st_shndx; in patchsym64()
199 osym->st_shndx = nsym->st_shndx; in patchsym32()
/linux-6.12.1/tools/objtool/
Delf.c486 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols()
487 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols()
488 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols()
489 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols()
490 shndx = sym->sym.st_shndx; in read_symbols()
603 bool is_special_shndx = sym->sym.st_shndx >= SHN_LORESERVE && in elf_update_symbol()
604 sym->sym.st_shndx != SHN_XINDEX; in elf_update_symbol()
607 shndx = sym->sym.st_shndx; in elf_update_symbol()
706 sym->sym.st_shndx = shndx; in elf_update_symbol()
710 sym->sym.st_shndx = SHN_XINDEX; in elf_update_symbol()
Dorc_dump.c123 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
/linux-6.12.1/arch/powerpc/kernel/
Dmodule_64.c275 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()
884 if (sym->st_shndx == SHN_UNDEF || in apply_relocate_add()
885 sym->st_shndx == SHN_LIVEPATCH) { in apply_relocate_add()
938 if (sym->st_shndx != me->arch.pcpu_section) { in apply_relocate_add()
/linux-6.12.1/arch/sparc/kernel/
Dmodule.c45 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.12.1/arch/alpha/kernel/
Dmodule.c207 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add()
261 me->name, r_type, sym->st_shndx); in apply_relocate_add()
/linux-6.12.1/tools/lib/bpf/
Dlinker.c433 init_sym->st_shndx = SHN_UNDEF; in init_output_elf()
814 || sym->st_other != 0 || sym->st_shndx != 0 in linker_sanity_check_elf_symtab()
831 if (sym->st_shndx == 0) { in linker_sanity_check_elf_symtab()
841 if (sym->st_shndx < SHN_LORESERVE && sym->st_shndx >= obj->sec_cnt) { in linker_sanity_check_elf_symtab()
843 i, sec->sec_idx, (size_t)sym->st_shndx, obj->filename); in linker_sanity_check_elf_symtab()
1859 sym_is_extern = sym->st_shndx == SHN_UNDEF; in linker_append_elf_sym()
1866 } else if (sym->st_shndx < SHN_LORESERVE) { in linker_append_elf_sym()
1867 src_sec = &obj->secs[sym->st_shndx]; in linker_append_elf_sym()
1977 dst_sym->st_shndx = dst_sec->sec_idx; in linker_append_elf_sym()
2008 dst_sym->st_shndx = dst_sec ? dst_sec->sec_idx : sym->st_shndx; in linker_append_elf_sym()
[all …]
/linux-6.12.1/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-6.12.1/kernel/
Dkexec_file.c1110 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
1111 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
1113 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
1135 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1166 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
/linux-6.12.1/include/uapi/linux/
Delf.h194 Elf32_Half st_shndx; member
201 Elf64_Half st_shndx; /* Associated section index */ member
/linux-6.12.1/arch/arm64/kernel/
Dmodule-plts.c182 if (s->st_shndx == dstidx) in count_plts()
255 if (s->st_shndx == dstidx) in branch_rela_needs_plt()
/linux-6.12.1/arch/arc/kernel/
Dmodule.c86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name; in apply_relocate_add()
/linux-6.12.1/tools/perf/util/
Dgenelf.c81 .st_shndx = 0, /* for now */
88 .st_shndx = 1,
Dsymbol-elf.c126 sym->st_shndx != SHN_UNDEF; in elf_sym__is_function()
133 sym->st_shndx != SHN_UNDEF; in elf_sym__is_object()
140 sym->st_shndx != SHN_UNDEF && in elf_sym__is_label()
141 sym->st_shndx != SHN_ABS && in elf_sym__is_label()
1672 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { in dso__load_sym_internal()
1676 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, in dso__load_sym_internal()
1690 if (sym.st_shndx == SHN_ABS) in dso__load_sym_internal()
1693 sec = elf_getscn(syms_ss->elf, sym.st_shndx); in dso__load_sym_internal()
1719 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); in dso__load_sym_internal()
/linux-6.12.1/arch/mips/kernel/
Dvpe.c496 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.12.1/scripts/mod/
Dmodpost.h128 unsigned int index = sym->st_shndx; in get_secindex()
/linux-6.12.1/tools/testing/selftests/vDSO/
Dparse_vdso.c231 if (sym->st_shndx == SHN_UNDEF) in vdso_sym()
/linux-6.12.1/arch/arm/kernel/
Dmodule-plts.c183 if (s->st_shndx == dstidx) in count_plts()
/linux-6.12.1/scripts/
Dinsert-sys-cert.c172 secndx = elf_sym->st_shndx; in get_symbol_from_table()

12