/kernel/linux/linux-5.10/scripts/ |
H A 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()
|
/kernel/linux/linux-6.6/scripts/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/mips/boot/tools/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A 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() 848 /* SHT_REL's sh_link should point to SYMTAB */ in linker_sanity_check_elf_relos() 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, ob in linker_sanity_check_elf_relos() [all...] |
/kernel/linux/linux-5.10/arch/x86/tools/ |
H A D | relocs.c | 401 shstrndx = elf_word_to_cpu(shdr.sh_link); in read_ehdr() 433 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs() 437 if (sec->shdr.sh_link < shnum) in read_shdrs() 438 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_file.c | 964 * ->sh_link contains section header index of associated in kexec_apply_relocations() 969 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 973 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations() 979 * symtab->sh_link contain section header index of associated 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()
|
/kernel/linux/linux-6.6/arch/x86/tools/ |
H A 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()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | elf.h | 314 Elf32_Word sh_link; member 327 Elf64_Word sh_link; /* Index of another section */ member
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | elf.h | 315 Elf32_Word sh_link; member 328 Elf64_Word sh_link; /* Index of another section */ member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | elf.h | 264 Elf32_Word sh_link; member 276 Elf64_Word sh_link; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | elf.h | 264 Elf32_Word sh_link; member 276 Elf64_Word sh_link; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | elf.h | 251 Elf32_Word sh_link; member 263 Elf64_Word sh_link; member
|
/kernel/linux/linux-5.10/arch/mips/vdso/ |
H A D | genvdso.h | 101 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); in get_symbols()
|
/kernel/linux/linux-6.6/arch/mips/vdso/ |
H A D | genvdso.h | 101 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); in get_symbols()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | kexec_file.c | 966 * ->sh_link contains section header index of associated in kexec_apply_relocations() 971 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 975 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations() 981 * symtab->sh_link contain section header index of associated in kexec_apply_relocations() 984 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 1074 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol() 1077 strtab = (void *)ehdr + sechdrs[sechdrs[i].sh_link].sh_offset; in kexec_purgatory_find_symbol()
|
/kernel/linux/linux-5.10/arch/sparc/vdso/ |
H A D | vdso2c.h | 76 GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); in go()
|
/kernel/linux/linux-6.6/arch/sparc/vdso/ |
H A D | vdso2c.h | 76 GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); in go()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/ |
H A D | relocs.c | 198 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs() 199 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
|
/kernel/linux/linux-5.10/tools/bpf/resolve_btfids/ |
H A D | main.c | 363 (int) sh.sh_link, (unsigned long) sh.sh_flags, in elf_collect() 369 obj->efile.strtabidx = sh.sh_link; in elf_collect()
|
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/ |
H A D | vma_map.c | 180 shdr_start + shdr.sh_link, in create_vma_map()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | module.c | 72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
|
/kernel/linux/linux-5.10/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 86 GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link); in go()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | module.c | 72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
|