Searched refs:st_shndx (Results 1 - 25 of 35) sorted by last modified time

12

/linux-master/scripts/mod/
H A Dmodpost.c349 * 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 Dfile2alias.c1602 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections)
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/tools/lib/bpf/
H A Dlibbpf.c851 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 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...]
H A Delf.c172 sym_scn = elf_getscn(iter->elf, sym->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/vdso/
H A Dvma.c131 osym->st_shndx = nsym->st_shndx;
199 osym->st_shndx = nsym->st_shndx;
/linux-master/tools/perf/util/
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...]
H A Dgenelf.c86 .st_shndx = 0, /* for now */
93 .st_shndx = 1,
/linux-master/kernel/module/
H A Dmain.c1379 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 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/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/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/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;
/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/tools/bpf/resolve_btfids/
H A Dmain.c449 if (sym.st_shndx != obj->efile.idlist_shndx)
/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/s390/boot/
H A Dstartup.c160 if (dynsym[r_sym].st_shndx != SHN_UNDEF)
/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/kernel/livepatch/
H A Dcore.c221 if (sym->st_shndx != SHN_LIVEPATCH) {
/linux-master/arch/arm64/kernel/
H A Dmodule-plts.c182 if (s->st_shndx == dstidx)
255 if (s->st_shndx == dstidx)
/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/arm/kernel/
H A Dmodule-plts.c183 if (s->st_shndx == dstidx)

Completed in 645 milliseconds

12