/Linux-v4.19/arch/s390/kernel/ |
D | machine_kexec_file.c | 166 if (sym->st_shndx == SHN_UNDEF) in arch_kexec_apply_relocations_add() 169 if (sym->st_shndx == SHN_COMMON) in arch_kexec_apply_relocations_add() 172 if (sym->st_shndx >= pi->ehdr->e_shnum && in arch_kexec_apply_relocations_add() 173 sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 181 if (sym->st_shndx != SHN_ABS) in arch_kexec_apply_relocations_add() 182 val += pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
D | module.c | 133 if (symbols[i].st_shndx == SHN_UNDEF && in module_frob_arch_sections() 137 symbols[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
|
/Linux-v4.19/scripts/mod/ |
D | modpost.h | 167 if (is_shndx_special(sym->st_shndx)) in get_secindex() 168 return SPECIAL(sym->st_shndx); in get_secindex() 169 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 170 return sym->st_shndx; in get_secindex()
|
D | modpost.c | 563 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 635 if (sym->st_shndx != SHN_UNDEF && sym->st_shndx != SHN_ABS) { in handle_modversions() 640 info->sechdrs[sym->st_shndx].sh_offset - in handle_modversions() 642 info->sechdrs[sym->st_shndx].sh_addr : 0); in handle_modversions() 649 switch (sym->st_shndx) { in handle_modversions() 1290 if (is_shndx_special(sym->st_shndx)) in find_elf_symbol2() 1823 if (is_shndx_special(sym->st_shndx)) in section_rela() 1883 if (is_shndx_special(sym->st_shndx)) in section_rel()
|
/Linux-v4.19/arch/x86/kernel/ |
D | machine_kexec_64.c | 449 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 452 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 455 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 460 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 465 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() 467 else if (sym->st_shndx >= pi->ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 469 sym->st_shndx, name); in arch_kexec_apply_relocations_add() 472 sec_base = pi->sechdrs[sym->st_shndx].sh_addr; in arch_kexec_apply_relocations_add()
|
/Linux-v4.19/arch/x86/tools/ |
D | relocs.c | 265 name = sec_name(sym->st_shndx); in sym_name() 478 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 544 if (sym->st_shndx != SHN_ABS) { in print_absolute_symbols() 591 if (sym->st_shndx != SHN_ABS) { in print_absolute_relocs() 745 return (sym->st_shndx == per_cpu_shndx) && in is_percpu_sym() 757 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc64() 759 if (sym->st_shndx == SHN_UNDEF) in do_reloc64() 837 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc32() 880 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); in do_reloc_real() 1065 sec_name(sym->st_shndx)); in do_reloc_info()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | module_64.c | 314 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify() 318 syms[i].st_shndx = SHN_ABS; in dedotify() 336 if (syms[i].st_shndx == SHN_ABS in find_dot_toc() 653 if (sym->st_shndx == SHN_UNDEF || in apply_relocate_add() 654 sym->st_shndx == SHN_LIVEPATCH) { in apply_relocate_add()
|
D | vdso.c | 341 sym32_gen->st_shndx = sym32_fix->st_shndx; in vdso_do_func_patch32() 452 sym64_gen->st_shndx = sym64_fix->st_shndx; in vdso_do_func_patch64()
|
/Linux-v4.19/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-v4.19/kernel/ |
D | module.c | 2247 switch (sym[i].st_shndx) { in simplify_symbols() 2290 if (sym[i].st_shndx == info->index.pcpu) in simplify_symbols() 2293 secbase = info->sechdrs[sym[i].st_shndx].sh_addr; in simplify_symbols() 2553 if (sym->st_shndx == SHN_UNDEF) in elf_type() 2555 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type() 2557 if (sym->st_shndx >= SHN_LORESERVE) in elf_type() 2559 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type() 2561 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC in elf_type() 2562 && sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type() 2563 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type() [all …]
|
D | kexec_file.c | 986 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 987 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 989 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1011 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr() 1042 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
|
/Linux-v4.19/arch/alpha/kernel/ |
D | module.c | 221 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add() 275 me->name, r_type, sym->st_shndx); in apply_relocate_add()
|
/Linux-v4.19/include/uapi/linux/ |
D | elf.h | 189 Elf32_Half st_shndx; member 196 Elf64_Half st_shndx; /* Associated section index */ member
|
/Linux-v4.19/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-v4.19/arch/arc/kernel/ |
D | module.c | 89 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name; in apply_relocate_add()
|
/Linux-v4.19/tools/objtool/ |
D | elf.c | 258 if (sym->sym.st_shndx > SHN_UNDEF && in read_symbols() 259 sym->sym.st_shndx < SHN_LORESERVE) { in read_symbols() 261 sym->sym.st_shndx); in read_symbols()
|
D | orc_dump.c | 174 scn = elf_getscn(elf, sym.st_shndx); in orc_dump()
|
/Linux-v4.19/tools/perf/util/ |
D | genelf.c | 90 .st_shndx = 0, /* for now */ 97 .st_shndx = 1,
|
D | symbol-elf.c | 99 sym->st_shndx != SHN_UNDEF; in elf_sym__is_function() 106 sym->st_shndx != SHN_UNDEF; in elf_sym__is_object() 113 sym->st_shndx != SHN_UNDEF && in elf_sym__is_label() 114 sym->st_shndx != SHN_ABS; in elf_sym__is_label() 1041 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { in dso__load_sym() 1045 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, in dso__load_sym() 1058 if (sym.st_shndx == SHN_ABS) in dso__load_sym() 1061 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); in dso__load_sym()
|
/Linux-v4.19/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-v4.19/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 240 if (sym->st_shndx == SHN_UNDEF) in vdso_sym()
|
/Linux-v4.19/scripts/ |
D | sortextable.h | 197 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_func()
|
/Linux-v4.19/arch/arm/kernel/ |
D | module-plts.c | 165 if (s->st_shndx == dstidx) in count_plts()
|
/Linux-v4.19/tools/lib/bpf/ |
D | libbpf.c | 367 if (sym.st_shndx != prog->idx) in bpf_object__init_prog_names() 610 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_maps() 656 if (sym.st_shndx != obj->efile.maps_shndx) in bpf_object__init_maps() 937 if (sym.st_shndx != maps_shndx && sym.st_shndx != text_shndx) { in bpf_program__collect_reloc() 939 prog->section_name, sym.st_shndx); in bpf_program__collect_reloc()
|
/Linux-v4.19/arch/arm64/kernel/ |
D | module-plts.c | 140 if (s->st_shndx == dstidx) in count_plts()
|