/kernel/linux/linux-5.10/scripts/ |
H A 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() [all...] |
H A 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) in nop_mcount() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | sorttable.h | 216 + _r(&(emloc->init_data_sec)->sh_offset); in sort_mcount_loc() 300 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort() 320 relocs = (void *)ehdr + _r(&s->sh_offset); in do_sort() 325 _r(&s->sh_offset)); in do_sort() 343 s->sh_offset); in do_sort() 348 s->sh_offset); in do_sort() 411 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset); in do_sort() 412 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_sort() 414 _r(&symtab_sec->sh_offset)); in do_sort() 429 for (sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_sort() [all...] |
H A 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) in nop_mcount() [all...] |
/kernel/linux/linux-6.6/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 32 offset = (unsigned long)GET_LE(&sec->sh_offset); in extract() 105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in go() 129 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in go() 132 GET_LE(&strtab_hdr->sh_offset) + in go() 205 (unsigned long)GET_LE(&alt_sec->sh_offset)); in go() 211 (unsigned long)GET_LE(&extable_sec->sh_offset)); in go()
|
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
H A 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, strerro in emit_relocs() [all...] |
/kernel/linux/linux-6.6/arch/mips/boot/tools/ |
H A 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, strerro in emit_relocs() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/ |
H A D | relocs.c | 218 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs() 220 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 242 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs() 244 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 277 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs() 279 sec->shdr.sh_offset, strerror(errno)); in read_relocs() 494 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs() 496 sec_reloc->shdr.sh_offset, strerror(errno)); in emit_relocs()
|
/kernel/linux/linux-5.10/arch/mips/vdso/ |
H A D | genvdso.h | 20 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in patch_vdso() 96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols() 102 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols()
|
/kernel/linux/linux-6.6/arch/mips/vdso/ |
H A D | genvdso.h | 20 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in patch_vdso() 96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols() 102 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols()
|
/kernel/linux/linux-5.10/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 70 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in go() 92 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in go() 95 GET_LE(&strtab_hdr->sh_offset) + in go() 164 (unsigned long)GET_LE(&alt_sec->sh_offset)); in go()
|
/kernel/linux/linux-6.6/arch/x86/tools/ |
H A D | relocs.c | 459 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 484 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs() 486 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 511 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 513 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 531 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 533 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 571 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs() 573 sec->shdr.sh_offset, strerro in read_relocs() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A 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-6.6/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 312 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 313 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 315 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 323 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 349 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | elf_kexec.c | 377 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 378 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 380 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 389 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 398 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
H A D | alternative.c | 185 begin = (void *)hdr + alt->sh_offset, in apply_vdso_alternatives() 186 end = (void *)hdr + alt->sh_offset + alt->sh_size, in apply_vdso_alternatives()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | machine_kexec_64.c | 401 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 402 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 404 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 422 location += section->sh_offset; in arch_kexec_apply_relocations_add() 434 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/arch/x86/tools/ |
H A 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-6.6/arch/mips/kernel/ |
H A D | vpe.c | 612 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in vpe_elfload() 621 (len < sechdrs[i].sh_offset + sechdrs[i].sh_size)) { in vpe_elfload() 630 sechdrs[i].sh_offset; in vpe_elfload() 637 sechdrs[strindex].sh_offset; in vpe_elfload() 717 sechdrs[strindex].sh_offset; in vpe_elfload() 724 sechdrs[i].sh_offset; in vpe_elfload()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | symbol-elf.c | 609 vi.offset = shdr->sh_offset + di->plt_got_data->d_off + i + disp; in get_plt_got_name() 652 snprintf(buf, buf_sz, "offset_%#" PRIx64 "@plt", (u64)shdr.sh_offset + i); in dso__synthesize_plt_got_symbols() 653 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); in dso__synthesize_plt_got_symbols() 699 f = dso__find_symbol_nocache(dso, shdr_plt.sh_offset); in dso__synthesize_plt_symbols() 700 if (f && f->start < shdr_plt.sh_offset && f->end > shdr_plt.sh_offset) in dso__synthesize_plt_symbols() 701 f->end = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() 707 plt_sym = symbol__new(shdr_plt.sh_offset, plt_header_size, STB_GLOBAL, STT_FUNC, ".plt"); in dso__synthesize_plt_symbols() 725 plt_offset = plt_sec_shdr.sh_offset; in dso__synthesize_plt_symbols() 728 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() [all...] |
/kernel/linux/linux-5.10/scripts/mod/ |
H A 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() 567 fatal("%s is truncated. sechdrs[i].sh_offset=%lu > " 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 in parse_elf() [all...] |
/kernel/linux/linux-5.10/arch/sparc/vdso/ |
H A D | vdso2c.h | 84 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in go() 86 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in go()
|
/kernel/linux/linux-6.6/arch/sparc/vdso/ |
H A D | vdso2c.h | 84 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in go() 86 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in go()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 291 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 299 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 313 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A 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()
|