/linux-master/kernel/module/ |
H A D | kallsyms.c | 48 if (sym->st_shndx == SHN_UNDEF) 50 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) 52 if (sym->st_shndx >= SHN_LORESERVE) 54 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) 56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && 57 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { 58 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) 60 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL) 65 if (sechdrs[sym->st_shndx] [all...] |
/linux-master/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 339 name = shstrtab + sechdrs[sym->st_shndx].sh_name; 341 if (sym->st_shndx == SHN_UNDEF) { 346 if (sym->st_shndx == SHN_COMMON) { 351 if (sym->st_shndx >= pi->ehdr->e_shnum && 352 sym->st_shndx != SHN_ABS) { 354 sym->st_shndx, name); 363 if (sym->st_shndx != SHN_ABS) 364 val += pi->sechdrs[sym->st_shndx].sh_addr;
|
H A D | module.c | 174 if (symbols[i].st_shndx == SHN_UNDEF && 178 symbols[i].st_shndx = SHN_ABS;
|
/linux-master/arch/x86/kernel/ |
H A D | machine_kexec_64.c | 437 name = shstrtab + sechdrs[sym->st_shndx].sh_name; 440 name, sym->st_info, sym->st_shndx, sym->st_value, 443 if (sym->st_shndx == SHN_UNDEF) { 448 if (sym->st_shndx == SHN_COMMON) { 453 if (sym->st_shndx == SHN_ABS) 455 else if (sym->st_shndx >= pi->ehdr->e_shnum) { 457 sym->st_shndx, name); 460 sec_base = pi->sechdrs[sym->st_shndx].sh_addr;
|
/linux-master/arch/riscv/kernel/ |
H A D | elf_kexec.c | 401 name = shstrtab + sechdrs[sym->st_shndx].sh_name; 407 if (sym->st_shndx == SHN_ABS) 409 else if (sym->st_shndx >= pi->ehdr->e_shnum) { 411 sym->st_shndx, name); 414 sec_base = pi->sechdrs[sym->st_shndx].sh_addr;
|
/linux-master/arch/x86/tools/ |
H A D | relocs.c | 356 if (sym->st_shndx != SHN_XINDEX) 357 return sym->st_shndx; 546 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); 618 if (sym->st_shndx != SHN_ABS) { 673 if (sym->st_shndx != SHN_ABS) { 841 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); 843 if (sym->st_shndx == SHN_UNDEF) 930 int shn_abs = (sym->st_shndx == SHN_ABS) && !is_reloc(S_REL, symname); 975 int shn_abs = (sym->st_shndx [all...] |
/linux-master/arch/sparc/vdso/ |
H A D | vma.c | 131 osym->st_shndx = nsym->st_shndx; 199 osym->st_shndx = nsym->st_shndx;
|
/linux-master/tools/objtool/ |
H A D | orc_dump.c | 123 scn = elf_getscn(elf, sym.st_shndx);
|
H A D | elf.c | 486 if ((sym->sym.st_shndx > SHN_UNDEF && 487 sym->sym.st_shndx < SHN_LORESERVE) || 488 (shndx_data && sym->sym.st_shndx == SHN_XINDEX)) { 489 if (sym->sym.st_shndx != SHN_XINDEX) 490 shndx = sym->sym.st_shndx; 603 bool is_special_shndx = sym->sym.st_shndx >= SHN_LORESERVE && 604 sym->sym.st_shndx != SHN_XINDEX; 607 shndx = sym->sym.st_shndx; 706 sym->sym.st_shndx = shndx; 710 sym->sym.st_shndx [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | module.c | 75 if (sym[i].st_shndx == SHN_UNDEF) { 77 sym[i].st_shndx = SHN_ABS;
|
/linux-master/arch/alpha/kernel/ |
H A D | module.c | 207 if (sym->st_shndx == SHN_UNDEF) 261 me->name, r_type, sym->st_shndx);
|
/linux-master/arch/powerpc/kernel/ |
H A D | module_64.c | 275 if (sym->st_shndx == pcpu && 367 if (syms[i].st_shndx == SHN_UNDEF) { 371 syms[i].st_shndx = SHN_ABS; 389 if (syms[i].st_shndx == SHN_ABS 885 if (sym->st_shndx == SHN_UNDEF || 886 sym->st_shndx == SHN_LIVEPATCH) { 939 if (sym->st_shndx != me->arch.pcpu_section) {
|
/linux-master/arch/arc/kernel/ |
H A D | module.c | 86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name;
|
/linux-master/arch/mips/boot/tools/ |
H A D | relocs.c | 126 name = sec_name(sym->st_shndx); 347 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); 644 sec_name(sym->st_shndx));
|
/linux-master/scripts/mod/ |
H A D | modpost.h | 127 /* if Nth symbol table entry has .st_shndx = SHN_XINDEX, 135 /* Accessor for sym->st_shndx, hides ugliness of "64k sections" */ 139 unsigned int index = sym->st_shndx; 142 * Elf{32,64}_Sym::st_shndx is 2 byte. Big section numbers are available
|
/linux-master/arch/arm64/kernel/ |
H A D | module-plts.c | 182 if (s->st_shndx == dstidx) 255 if (s->st_shndx == dstidx)
|
/linux-master/include/uapi/linux/ |
H A D | elf.h | 194 Elf32_Half st_shndx; member in struct:elf32_sym 201 Elf64_Half st_shndx; /* Associated section index */ member in struct:elf64_sym
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 433 init_sym->st_shndx = SHN_UNDEF; 814 || sym->st_other != 0 || sym->st_shndx != 0 831 if (sym->st_shndx == 0) { 841 if (sym->st_shndx < SHN_LORESERVE && sym->st_shndx >= obj->sec_cnt) { 843 i, sec->sec_idx, (size_t)sym->st_shndx, obj->filename); 1845 sym_is_extern = sym->st_shndx == SHN_UNDEF; 1852 } else if (sym->st_shndx < SHN_LORESERVE) { 1853 src_sec = &obj->secs[sym->st_shndx]; 1963 dst_sym->st_shndx [all...] |
/linux-master/kernel/ |
H A D | kexec_file.c | 1105 if (syms[k].st_shndx == SHN_UNDEF || 1106 syms[k].st_shndx >= ehdr->e_shnum) { 1108 name, syms[k].st_shndx); 1130 sechdr = &pi->sechdrs[sym->st_shndx]; 1161 sec = pi->sechdrs + sym->st_shndx;
|
/linux-master/tools/perf/util/ |
H A D | genelf.c | 86 .st_shndx = 0, /* for now */ 93 .st_shndx = 1,
|
H A D | symbol-elf.c | 126 sym->st_shndx != SHN_UNDEF; 133 sym->st_shndx != SHN_UNDEF; 140 sym->st_shndx != SHN_UNDEF && 141 sym->st_shndx != SHN_ABS && 1679 if (runtime_ss->opdsec && sym.st_shndx == runtime_ss->opdidx) { 1683 sym.st_shndx = elf_addr_to_index(runtime_ss->elf, 1690 * has a value of SHN_ABS in its st_shndx) failed at 1697 if (sym.st_shndx == SHN_ABS) 1700 sec = elf_getscn(syms_ss->elf, sym.st_shndx); 1726 sec = elf_getscn(runtime_ss->elf, sym.st_shndx); [all...] |
/linux-master/tools/testing/selftests/vDSO/ |
H A D | parse_vdso.c | 218 if (sym->st_shndx == SHN_UNDEF)
|
/linux-master/arch/arm/kernel/ |
H A D | module-plts.c | 183 if (s->st_shndx == dstidx)
|
/linux-master/arch/mips/kernel/ |
H A D | vpe.c | 496 switch (sym[i].st_shndx) { 517 pr_debug("simplify_symbols: ignoring SHN_MIPS_SCOMMON symbol <%s> st_shndx %d\n", 518 strtab + sym[i].st_name, sym[i].st_shndx); 523 secbase = sechdrs[sym[i].st_shndx].sh_addr;
|
/linux-master/scripts/ |
H A D | insert-sys-cert.c | 172 secndx = elf_sym->st_shndx;
|