/linux-master/scripts/mod/ |
H A D | modpost.c | 349 * If sym->st_shndx is a special section index, there is no 550 sym->st_shndx = TO_NATIVE(sym->st_shndx); 616 switch (sym->st_shndx) {
|
H A D | file2alias.c | 1602 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections)
|
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/tools/lib/bpf/ |
H A D | libbpf.c | 851 if (sym->st_shndx != sec_idx) 3898 return sym->st_shndx == SHN_UNDEF && 3909 if (sym->st_shndx != text_shndx) 4384 __u32 shdr_idx = sym->st_shndx; 4490 map->sec_idx != sym->st_shndx || 4518 if (map->libbpf_type != type || map->sec_idx != sym->st_shndx) 4619 if (sym->st_shndx >= obj->efile.sec_cnt) { 4621 relo_sec_name, sym_idx, (size_t)sym->st_shndx, i); 4639 sym_name = elf_sec_name(obj, elf_sec_by_idx(obj, sym->st_shndx)); 7092 if (sym->st_shndx ! [all...] |
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...] |
H A D | elf.c | 172 sym_scn = elf_getscn(iter->elf, sym->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/vdso/ |
H A D | vma.c | 131 osym->st_shndx = nsym->st_shndx; 199 osym->st_shndx = nsym->st_shndx;
|
/linux-master/tools/perf/util/ |
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...] |
H A D | genelf.c | 86 .st_shndx = 0, /* for now */ 93 .st_shndx = 1,
|
/linux-master/kernel/module/ |
H A D | main.c | 1379 switch (sym[i].st_shndx) { 1426 if (sym[i].st_shndx == info->index.pcpu) 1429 secbase = info->sechdrs[sym[i].st_shndx].sh_addr;
|
/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/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/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/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;
|
/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/tools/bpf/resolve_btfids/ |
H A D | main.c | 449 if (sym.st_shndx != obj->efile.idlist_shndx)
|
/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/s390/boot/ |
H A D | startup.c | 160 if (dynsym[r_sym].st_shndx != SHN_UNDEF)
|
/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/kernel/livepatch/ |
H A D | core.c | 221 if (sym->st_shndx != SHN_LIVEPATCH) {
|
/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/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/arm/kernel/ |
H A D | module-plts.c | 183 if (s->st_shndx == dstidx)
|