Home
last modified time | relevance | path

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

12

/linux/arch/s390/kernel/
A Dmachine_kexec_file.c320 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
322 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
327 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
332 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add()
333 sym->st_shndx != SHN_ABS) { in arch_kexec_apply_relocations_add()
335 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
344 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add()
345 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
A Dmodule.c151 if (symbols[i].st_shndx == SHN_UNDEF && in module_frob_arch_sections()
155 symbols[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
/linux/arch/x86/kernel/
A Dmachine_kexec_64.c452 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
455 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
458 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
463 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
468 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
470 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
472 sym->st_shndx, name); in arch_kexec_apply_relocations_add()
475 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
/linux/scripts/mod/
A Dmodpost.h173 if (is_shndx_special(sym->st_shndx)) in get_secindex()
174 return SPECIAL(sym->st_shndx); in get_secindex()
175 if (sym->st_shndx != SHN_XINDEX) in get_secindex()
176 return sym->st_shndx; in get_secindex()
A Dmodpost.c610 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf()
671 if (sym->st_shndx == SHN_UNDEF) { in handle_modversion()
680 if (sym->st_shndx == SHN_ABS) { in handle_modversion()
703 switch (sym->st_shndx) { in handle_symbol()
1346 if (is_shndx_special(sym->st_shndx)) in find_elf_symbol2()
1871 if (is_shndx_special(sym->st_shndx)) in section_rela()
1931 if (is_shndx_special(sym->st_shndx)) in section_rel()
/linux/arch/x86/tools/
A 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/arch/sparc/vdso/
A Dvma.c131 osym->st_shndx = nsym->st_shndx; in patchsym64()
199 osym->st_shndx = nsym->st_shndx; in patchsym32()
/linux/arch/powerpc/kernel/
A Dmodule_64.c251 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
255 syms[i].st_shndx = SHN_ABS; in dedotify()
273 if (syms[i].st_shndx == SHN_ABS in find_dot_toc()
640 if (sym->st_shndx == SHN_UNDEF || in apply_relocate_add()
641 sym->st_shndx == SHN_LIVEPATCH) { in apply_relocate_add()
/linux/arch/sparc/kernel/
A 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/kernel/
A Dmodule.c2296 switch (sym[i].st_shndx) { in simplify_symbols()
2635 if (sym->st_shndx == SHN_UNDEF) in elf_type()
2637 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type()
2639 if (sym->st_shndx >= SHN_LORESERVE) in elf_type()
2670 if (src->st_shndx == SHN_UNDEF in is_core_symbol()
2671 || src->st_shndx >= shnum in is_core_symbol()
2676 if (src->st_shndx == pcpundx) in is_core_symbol()
2680 sec = sechdrs + src->st_shndx; in is_core_symbol()
4279 if (sym->st_shndx == SHN_UNDEF) in find_kallsyms_symbol()
4446 sym->st_shndx != SHN_UNDEF) in find_kallsyms_symbol_value()
[all …]
A Dkexec_file.c1106 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
1107 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
1109 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
1131 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1162 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
/linux/tools/lib/bpf/
A Dlinker.c432 init_sym->st_shndx = SHN_UNDEF; in init_output_elf()
799 || sym->st_other != 0 || sym->st_shndx != 0 in linker_sanity_check_elf_symtab()
816 if (sym->st_shndx == 0) { in linker_sanity_check_elf_symtab()
826 if (sym->st_shndx < SHN_LORESERVE && sym->st_shndx >= obj->sec_cnt) { in linker_sanity_check_elf_symtab()
1816 sym_is_extern = sym->st_shndx == SHN_UNDEF; in linker_append_elf_sym()
1823 } else if (sym->st_shndx < SHN_LORESERVE) { in linker_append_elf_sym()
1824 src_sec = &obj->secs[sym->st_shndx]; in linker_append_elf_sym()
1934 dst_sym->st_shndx = dst_sec->sec_idx; in linker_append_elf_sym()
1965 dst_sym->st_shndx = dst_sec ? dst_sec->sec_idx : sym->st_shndx; in linker_append_elf_sym()
2066 struct src_sec *sec = &obj->secs[src_sym->st_shndx]; in linker_append_elf_relos()
[all …]
/linux/arch/alpha/kernel/
A 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/arch/mips/boot/tools/
A 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/include/uapi/linux/
A Delf.h190 Elf32_Half st_shndx; member
197 Elf64_Half st_shndx; /* Associated section index */ member
/linux/tools/objtool/
A Delf.c396 if ((sym->sym.st_shndx > SHN_UNDEF && in read_symbols()
397 sym->sym.st_shndx < SHN_LORESERVE) || in read_symbols()
398 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { in read_symbols()
399 if (sym->sym.st_shndx != SHN_XINDEX) in read_symbols()
400 shndx = sym->sym.st_shndx; in read_symbols()
A Dorc_dump.c168 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
/linux/tools/perf/util/
A Dgenelf.c85 .st_shndx = 0, /* for now */
92 .st_shndx = 1,
A 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()
1204 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { in dso__load_sym_internal()
1208 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, in dso__load_sym_internal()
1221 if (sym.st_shndx == SHN_ABS) in dso__load_sym_internal()
1224 sec = elf_getscn(syms_ss->elf, sym.st_shndx); in dso__load_sym_internal()
1239 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); in dso__load_sym_internal()
/linux/arch/arm64/kernel/
A Dmodule-plts.c188 if (s->st_shndx == dstidx) in count_plts()
262 if (s->st_shndx == dstidx) in branch_rela_needs_plt()
/linux/arch/mips/kernel/
A 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/arch/arc/kernel/
A Dmodule.c86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name; in apply_relocate_add()
/linux/tools/testing/selftests/vDSO/
A Dparse_vdso.c218 if (sym->st_shndx == SHN_UNDEF) in vdso_sym()
/linux/arch/s390/boot/
A Dstartup.c94 if (dynsym[r_sym].st_shndx != SHN_UNDEF) in handle_relocs()
/linux/arch/arm/kernel/
A Dmodule-plts.c188 if (s->st_shndx == dstidx) in count_plts()

Completed in 59 milliseconds

12