/linux-6.6.21/scripts/ |
D | recordmcount.h | 233 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()
|
D | insert-sys-cert.c | 142 link = symtab->sh_link; in find_elf_symbol()
|
D | sorttable.h | 299 shstrndx = r(&shdr[0].sh_link); in do_sort()
|
/linux-6.6.21/kernel/ |
D | kexec_file.c | 969 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()
|
/linux-6.6.21/tools/lib/bpf/ |
D | linker.c | 373 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() 782 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); in linker_sanity_check_elf_symtab() 849 if (sec->shdr->sh_link != obj->symtab_sec_idx) { in linker_sanity_check_elf_relos() 851 sec->sec_idx, (size_t)sec->shdr->sh_link, obj->filename); 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() [all …]
|
D | elf.c | 104 iter->strtabidx = sh.sh_link; in elf_sym_iter_new()
|
/linux-6.6.21/arch/mips/boot/tools/ |
D | relocs.c | 285 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()
|
/linux-6.6.21/include/uapi/linux/ |
D | elf.h | 315 Elf32_Word sh_link; member 328 Elf64_Word sh_link; /* Index of another section */ member
|
/linux-6.6.21/arch/x86/tools/ |
D | relocs.c | 429 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()
|
/linux-6.6.21/arch/mips/vdso/ |
D | genvdso.h | 101 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); in FUNC()
|
/linux-6.6.21/arch/sparc/vdso/ |
D | vdso2c.h | 76 GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); in BITSFUNC()
|
/linux-6.6.21/arch/sparc/kernel/ |
D | module.c | 72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
|
/linux-6.6.21/tools/perf/util/ |
D | symbol-elf.c | 546 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()
|
D | genelf.c | 419 shdr->sh_link = unwinding ? 6 : 4; /* index of .strtab section */ in jit_write_elf()
|
/linux-6.6.21/scripts/mod/ |
D | modpost.c | 495 info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link); in parse_elf() 509 sechdrs[i].sh_link = TO_NATIVE(sechdrs[i].sh_link); in parse_elf() 543 sh_link_idx = sechdrs[i].sh_link; in parse_elf() 570 if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link) in parse_elf() 572 filename, sechdrs[symtab_shndx_idx].sh_link, in parse_elf()
|
/linux-6.6.21/tools/bpf/resolve_btfids/ |
D | main.c | 383 (int) sh.sh_link, (unsigned long) sh.sh_flags, in elf_collect() 389 obj->efile.strtabidx = sh.sh_link; in elf_collect()
|
/linux-6.6.21/arch/x86/entry/vdso/ |
D | vdso2c.h | 123 GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link); in BITSFUNC()
|
/linux-6.6.21/arch/mips/kernel/ |
D | vpe.c | 635 strindex = sechdrs[i].sh_link; in vpe_elfload() 715 strindex = sechdrs[i].sh_link; in vpe_elfload()
|
/linux-6.6.21/arch/mips/boot/ |
D | elf2ecoff.c | 214 s->sh_link = swab32(s->sh_link); in convert_elf_shdrs()
|
/linux-6.6.21/kernel/module/ |
D | main.c | 1773 if (shdr->sh_link == SHN_UNDEF in elf_validity_cache_copy() 1774 || shdr->sh_link >= info->hdr->e_shnum) { in elf_validity_cache_copy() 1776 shdr->sh_link, shdr->sh_link, in elf_validity_cache_copy() 1829 info->index.str = shdr->sh_link; in elf_validity_cache_copy()
|
/linux-6.6.21/arch/s390/kernel/ |
D | machine_kexec_file.c | 312 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
|
D | module.c | 172 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
|
/linux-6.6.21/arch/x86/kernel/ |
D | machine_kexec_64.c | 401 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
|
/linux-6.6.21/arch/riscv/kernel/ |
D | elf_kexec.c | 377 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
|
/linux-6.6.21/tools/objtool/ |
D | elf.c | 481 sym->name = elf_strptr(elf->elf, symtab->sh.sh_link, in read_symbols() 1193 rsec->sh.sh_link = find_section_by_name(elf, ".symtab")->idx; in elf_create_rela_section()
|