Home
last modified time | relevance | path

Searched refs:sh_link (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/scripts/
H A Drecordmcount.h233 return w(shdr0->sh_link); in get_shstrndx()
314 mcsec.sh_link = 0; in append_func()
329 mcsec.sh_link = w(symsec_sh_link); in append_func()
380 unsigned const symsec_sh_link = w(relhdr->sh_link); in get_sym_str_and_relp()
382 Elf_Shdr const *const strsec = &shdr0[w(symsec->sh_link)]; in get_sym_str_and_relp()
666 symsec_sh_link = w(relhdr->sh_link); in do_func()
H A Dinsert-sys-cert.c142 link = symtab->sh_link; in find_elf_symbol()
/openbmc/linux/kernel/
H A Dkexec_file.c969 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
973 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations()
982 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
1072 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol()
1075 strtab = (void *)ehdr + sechdrs[sechdrs[i].sh_link].sh_offset; in kexec_purgatory_find_symbol()
/openbmc/linux/arch/mips/boot/tools/
H A Drelocs.c285 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs()
289 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs()
290 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
/openbmc/linux/tools/lib/bpf/
H A Dlinker.c373 sec->shdr->sh_link = 0; in init_output_elf()
411 sec->shdr->sh_link = linker->strtab_sec_idx; in init_output_elf()
774 if (!sec->shdr->sh_link || sec->shdr->sh_link >= obj->sec_cnt) { in linker_sanity_check_elf_symtab()
776 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_symtab()
779 link_sec = &obj->secs[sec->shdr->sh_link]; in linker_sanity_check_elf_symtab()
849 if (sec->shdr->sh_link != obj->symtab_sec_idx) { in linker_sanity_check_elf_relos()
1020 shdr->sh_link = 0; in init_sec()
1226 int str_sec_idx = symtab->shdr->sh_link; in linker_append_elf_syms()
2045 dst_sec->shdr->sh_link = linker->symtab_sec_idx; in linker_append_elf_relos()
2108 int str_sec_idx = symtab->shdr->sh_link; in find_sym_by_name()
[all …]
H A Delf.c104 iter->strtabidx = sh.sh_link; in elf_sym_iter_new()
/openbmc/linux/include/uapi/linux/
H A Delf.h315 Elf32_Word sh_link; member
328 Elf64_Word sh_link; /* Index of another section */ member
/openbmc/linux/arch/x86/tools/
H A Drelocs.c429 shstrndx = elf_word_to_cpu(shdr.sh_link); in read_ehdr()
461 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs()
465 if (sec->shdr.sh_link < shnum) in read_shdrs()
466 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
/openbmc/qemu/include/hw/
H A Delf_ops.h38 bswap32s(&shdr->sh_link); in glue()
141 if (symtab->sh_link >= ehdr->e_shnum) { in glue()
144 strtab = &shdr_table[symtab->sh_link]; in glue()
/openbmc/linux/arch/mips/vdso/
H A Dgenvdso.h101 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); in FUNC()
/openbmc/u-boot/include/
H A Delf.h238 Elf32_Word sh_link; /* section header table index link */ member
252 Elf64_Word sh_link; /* section header table index link */ member
/openbmc/linux/arch/sparc/vdso/
H A Dvdso2c.h76 GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); in BITSFUNC()
/openbmc/linux/arch/sparc/kernel/
H A Dmodule.c72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
/openbmc/linux/tools/perf/util/
H A Dsymbol-elf.c546 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info()
552 scn = elf_getscn(elf, rela_dyn_shdr.sh_link); in get_rela_dyn_info()
553 if (!scn || !gelf_getshdr(scn, &shdr) || !shdr.sh_link) in get_rela_dyn_info()
557 di->dynstr_data = elf_getdata(elf_getscn(elf, shdr.sh_link), NULL); in get_rela_dyn_info()
745 if (!shdr_rel_plt.sh_link) in dso__synthesize_plt_symbols()
748 if (shdr_rel_plt.sh_link == ss->dynsym_idx) { in dso__synthesize_plt_symbols()
751 } else if (shdr_rel_plt.sh_link == ss->symtab_idx) { in dso__synthesize_plt_symbols()
777 scn_symstrs = elf_getscn(elf, shdr_dynsym.sh_link); in dso__synthesize_plt_symbols()
1527 sec = elf_getscn(elf, shdr.sh_link); in dso__load_sym_internal()
H A Dgenelf.c419 shdr->sh_link = unwinding ? 6 : 4; /* index of .strtab section */ in jit_write_elf()
/openbmc/linux/scripts/mod/
H A Dmodpost.c494 info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link); in parse_elf()
508 sechdrs[i].sh_link = TO_NATIVE(sechdrs[i].sh_link); in parse_elf()
542 sh_link_idx = sechdrs[i].sh_link; in parse_elf()
569 if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link) in parse_elf()
571 filename, sechdrs[symtab_shndx_idx].sh_link, in parse_elf()
/openbmc/qemu/linux-user/
H A Dgen-vdso-elfn.c.inc47 bswaps(&shdr->sh_link);
70 unsigned str_idx = shdr[sym_idx].sh_link;
/openbmc/linux/tools/bpf/resolve_btfids/
H A Dmain.c401 (int) sh.sh_link, (unsigned long) sh.sh_flags, in elf_collect()
407 obj->efile.strtabidx = sh.sh_link; in elf_collect()
/openbmc/linux/arch/x86/entry/vdso/
H A Dvdso2c.h123 GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link); in BITSFUNC()
/openbmc/openbmc/poky/scripts/
H A Drelocate_sdk.py138 sh_name, sh_type, sh_flags, sh_addr, sh_offset, sh_size, sh_link,\
/openbmc/linux/arch/mips/boot/
H A Delf2ecoff.c214 s->sh_link = swab32(s->sh_link); in convert_elf_shdrs()
/openbmc/qemu/bsd-user/
H A Delfload.c92 bswap32s(&shdr->sh_link); in bswap_shdr()
412 lseek(fd, hdr->e_shoff + sizeof(sechdr) * sechdr.sh_link, in load_symbols()
/openbmc/linux/arch/mips/kernel/
H A Dvpe.c635 strindex = sechdrs[i].sh_link; in vpe_elfload()
715 strindex = sechdrs[i].sh_link; in vpe_elfload()
/openbmc/u-boot/tools/
H A Dimg2srec.c288 getPtr = ExtractLong((uint32_t *)&sectHeader[i].sh_link, getPtr); in ConvertELF()
/openbmc/linux/arch/s390/kernel/
H A Dmachine_kexec_file.c312 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add()

12