Searched refs:st_shndx (Results 1 - 25 of 35) sorted by relevance

12

/linux-master/kernel/module/
H A Dkallsyms.c48 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 Dmachine_kexec_file.c339 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 Dmodule.c174 if (symbols[i].st_shndx == SHN_UNDEF &&
178 symbols[i].st_shndx = SHN_ABS;
/linux-master/arch/x86/kernel/
H A Dmachine_kexec_64.c437 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 Delf_kexec.c401 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 Drelocs.c356 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 Dvma.c131 osym->st_shndx = nsym->st_shndx;
199 osym->st_shndx = nsym->st_shndx;
/linux-master/tools/objtool/
H A Dorc_dump.c123 scn = elf_getscn(elf, sym.st_shndx);
H A Delf.c486 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 Dmodule.c75 if (sym[i].st_shndx == SHN_UNDEF) {
77 sym[i].st_shndx = SHN_ABS;
/linux-master/arch/alpha/kernel/
H A Dmodule.c207 if (sym->st_shndx == SHN_UNDEF)
261 me->name, r_type, sym->st_shndx);
/linux-master/arch/powerpc/kernel/
H A Dmodule_64.c275 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 Dmodule.c86 s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name;
/linux-master/arch/mips/boot/tools/
H A Drelocs.c126 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 Dmodpost.h127 /* 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 Dmodule-plts.c182 if (s->st_shndx == dstidx)
255 if (s->st_shndx == dstidx)
/linux-master/include/uapi/linux/
H A Delf.h194 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 Dlinker.c433 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 Dkexec_file.c1105 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 Dgenelf.c86 .st_shndx = 0, /* for now */
93 .st_shndx = 1,
H A Dsymbol-elf.c126 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 Dparse_vdso.c218 if (sym->st_shndx == SHN_UNDEF)
/linux-master/arch/arm/kernel/
H A Dmodule-plts.c183 if (s->st_shndx == dstidx)
/linux-master/arch/mips/kernel/
H A Dvpe.c496 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 Dinsert-sys-cert.c172 secndx = elf_sym->st_shndx;

Completed in 255 milliseconds

12