/kernel/linux/linux-5.10/scripts/ |
D | sorttable.h | 229 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort() 249 relocs = (void *)ehdr + _r(&s->sh_offset); in do_sort() 254 _r(&s->sh_offset)); in do_sort() 261 s->sh_offset); in do_sort() 266 s->sh_offset); in do_sort() 312 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset); in do_sort() 313 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_sort() 315 _r(&symtab_sec->sh_offset)); in do_sort() 330 for (sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_sort() 353 _r(&sort_needed_sec->sh_offset) + in do_sort()
|
D | recordmcount.h | 248 *symtab = (void *)ehdr + relhdr->sh_offset; in find_symtab() 250 *symtab_shndx = (void *)ehdr + relhdr->sh_offset; in find_symtab() 274 uint_t const old_shstr_sh_offset = _w(shstr->sh_offset); in append_func() 282 shstr->sh_offset = _w(sb.st_size); in append_func() 312 mcsec.sh_offset = _w(t); in append_func() 327 mcsec.sh_offset = _w((void *)mlocp - (void *)mloc0 + t); in append_func() 383 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset) in get_sym_str_and_relp() 386 *sym0 = (Elf_Sym const *)(_w(symsec->sh_offset) in get_sym_str_and_relp() 389 *str0 = (char const *)(_w(strsec->sh_offset) in get_sym_str_and_relp() 477 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); in nop_mcount() [all …]
|
D | insert-sys-cert.c | 82 unsigned long offset = x[i].sh_offset; in get_offset_from_address() 143 symtab_start = (void *)hdr + symtab->sh_offset; in find_elf_symbol() 145 strtab = (void *)hdr + x[link].sh_offset; in find_elf_symbol() 179 + sec->sh_offset; in get_symbol_from_table()
|
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
D | relocs.c | 283 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 309 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs() 311 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 333 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs() 335 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 377 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs() 379 sec->shdr.sh_offset, strerror(errno)); in read_relocs() 607 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs() 609 sec_reloc->shdr.sh_offset, strerror(errno)); in emit_relocs()
|
/kernel/linux/linux-5.10/arch/x86/entry/vdso/ |
D | vdso2c.h | 70 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC() 92 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC() 95 GET_LE(&strtab_hdr->sh_offset) + in BITSFUNC() 164 (unsigned long)GET_LE(&alt_sec->sh_offset)); in BITSFUNC()
|
/kernel/linux/linux-5.10/arch/mips/vdso/ |
D | genvdso.h | 20 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC() 96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC() 102 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | machine_kexec_64.c | 441 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 442 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 444 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 462 location += section->sh_offset; in arch_kexec_apply_relocations_add() 474 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | module_32.c | 96 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 104 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 109 + sechdrs[i].sh_offset, in get_plt_size()
|
D | vdso.c | 240 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section32() 247 return (void *)ehdr + sechdrs[i].sh_offset; in find_section32() 345 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section64() 352 return (void *)ehdr + sechdrs[i].sh_offset; in find_section64()
|
D | module.c | 27 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
|
/kernel/linux/linux-5.10/arch/sparc/vdso/ |
D | vma.c | 76 snames = (void *)e->hdr + shdrs[e->hdr->e_shstrndx].sh_offset; in one_section64() 81 return (void *)e->hdr + shdrs[i].sh_offset; in one_section64() 144 snames = (void *)e->hdr + shdrs[e->hdr->e_shstrndx].sh_offset; in one_section32() 149 return (void *)e->hdr + shdrs[i].sh_offset; in one_section32()
|
D | vdso2c.h | 84 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in BITSFUNC() 86 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in BITSFUNC()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 321 u64 sh_offset; local 327 sh_offset = elf_shdr_get_sh_offset(class, shdr); 328 table = (struct resource_table *)(elf_data + sh_offset);
|
D | remoteproc_elf_helpers.h | 79 ELF_GEN_FIELD_GET_SET(shdr, sh_offset, u64)
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | vpe.c | 613 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in vpe_elfload() 622 (len < sechdrs[i].sh_offset + sechdrs[i].sh_size)) { in vpe_elfload() 631 sechdrs[i].sh_offset; in vpe_elfload() 638 sechdrs[strindex].sh_offset; in vpe_elfload() 718 sechdrs[strindex].sh_offset; in vpe_elfload() 725 sechdrs[i].sh_offset; in vpe_elfload()
|
/kernel/linux/linux-5.10/arch/x86/tools/ |
D | relocs.c | 431 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 456 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs() 458 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 481 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 483 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 514 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs() 516 sec->shdr.sh_offset, strerror(errno)); in read_relocs()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | machine_kexec_file.c | 282 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 290 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 304 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
D | module.c | 138 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections() 139 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections() 158 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections() 493 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
|
/kernel/linux/linux-5.10/scripts/mod/ |
D | modpost.c | 326 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset() 553 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf() 561 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf() 566 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf() 569 (unsigned long)sechdrs[i].sh_offset, in parse_elf() 577 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf() 594 sechdrs[i].sh_offset; in parse_elf() 596 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf() 599 sechdrs[sh_link_idx].sh_offset; in parse_elf() 606 sechdrs[i].sh_offset; in parse_elf() [all …]
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | vdso.c | 122 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section() 129 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
|
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 189 shdr.sh_offset + in create_vma_map() 195 spu_elf_start + shdr_str.sh_offset + in create_vma_map()
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | elf.h | 262 Elf32_Off sh_offset; member 274 Elf64_Off sh_offset; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | elf.h | 249 Elf32_Off sh_offset; member 261 Elf64_Off sh_offset; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | elf.h | 311 Elf32_Off sh_offset; member 324 Elf64_Off sh_offset; /* Section file offset */ member
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | symbol-elf.c | 353 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() 945 sym->st_value -= shdr->sh_addr - shdr->sh_offset; in dso__process_kernel_symbol() 960 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 979 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 997 start += map->start + shdr->sh_offset; in dso__process_kernel_symbol() 1016 curr_map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 1094 dso->text_offset = tshdr.sh_addr - tshdr.sh_offset; in dso__load_sym() 1223 (u64)shdr.sh_offset); in dso__load_sym() 1224 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym() 2233 sdt_adjust_loc(tmp, shdr.sh_offset); in populate_sdt_note() [all …]
|