Home
last modified time | relevance | path

Searched refs:sh_offset (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.15/arch/x86/entry/vdso/
H A Dvdso2c.h32 offset = (unsigned long)GET_LE(&sec->sh_offset); in BITSFUNC()
105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC()
129 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC()
132 GET_LE(&strtab_hdr->sh_offset) + in BITSFUNC()
185 (unsigned long)GET_LE(&alt_sec->sh_offset)); in BITSFUNC()
191 (unsigned long)GET_LE(&extable_sec->sh_offset)); in BITSFUNC()
/linux-6.15/scripts/
H A Drecordmcount.h248 *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()
525 Elf_Sym const *const sym0 = (Elf_Sym const *)(_w(symhdr->sh_offset) in find_secsym_ndx()
[all …]
H A Dinsert-sys-cert.c82 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()
/linux-6.15/arch/mips/boot/tools/
H A Drelocs.c283 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()
612 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs()
614 sec_reloc->shdr.sh_offset, strerror(errno)); in emit_relocs()
/linux-6.15/arch/mips/vdso/
H A Dgenvdso.h20 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()
/linux-6.15/arch/s390/kernel/
H A Dmachine_kexec_file.c322 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
323 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add()
325 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
333 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
359 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
H A Dvdso.c174 start = (void *)hdr + alt->sh_offset; in vdso_apply_alternatives()
175 end = (void *)hdr + alt->sh_offset + alt->sh_size; in vdso_apply_alternatives()
H A Dmodule.c135 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections()
136 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
155 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
513 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/linux-6.15/arch/x86/tools/
H A Drelocs.c433 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
459 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs()
460 die("Seek to %" FMT " failed: %s\n", sec->shdr.sh_offset, strerror(errno)); in read_strtabs()
481 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
482 die("Seek to %" FMT " failed: %s\n", sec->shdr.sh_offset, strerror(errno)); in read_symtabs()
497 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
498 die("Seek to %" FMT " failed: %s\n", sec->shdr.sh_offset, strerror(errno)); in read_symtabs()
535 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()
536 die("Seek to %" FMT " failed: %s\n", sec->shdr.sh_offset, strerror(errno)); in read_relocs()
/linux-6.15/tools/perf/util/
H A Dsymbol-elf.c704 if (f && f->start < shdr_plt.sh_offset && f->end > shdr_plt.sh_offset) in dso__synthesize_plt_symbols()
705 f->end = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
729 plt_offset = plt_sec_shdr.sh_offset; in dso__synthesize_plt_symbols()
732 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
1443 offs = shdr.sh_offset + shdr.sh_size; in max_text_section()
1512 map__set_pgoff(map, shdr->sh_offset); in dso__process_kernel_symbol()
1534 map__set_pgoff(map, shdr->sh_offset); in dso__process_kernel_symbol()
1550 shdr->sh_offset <= max_text_sh_offset) { in dso__process_kernel_symbol()
1584 map__set_pgoff(curr_map, shdr->sh_offset); in dso__process_kernel_symbol()
1824 (u64)shdr.sh_offset); in dso__load_sym_internal()
[all …]
/linux-6.15/arch/x86/kernel/
H A Dmachine_kexec_64.c452 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
453 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add()
455 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
473 location += section->sh_offset; in arch_kexec_apply_relocations_add()
485 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
/linux-6.15/arch/riscv/kernel/
H A Delf_kexec.c384 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
385 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add()
387 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
396 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
405 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
H A Dalternative.c185 begin = (void *)hdr + alt->sh_offset, in apply_vdso_alternatives()
186 end = (void *)hdr + alt->sh_offset + alt->sh_size, in apply_vdso_alternatives()
/linux-6.15/arch/arm64/kernel/pi/
H A Drelacheck.c75 swab_elfxword(shdr[swab_elfhword(ehdr->e_shstrndx)].sh_offset); in main()
105 rela = (void *)ehdr + swab_elfxword(shdr[i].sh_offset); in main()
/linux-6.15/arch/sparc/vdso/
H A Dvma.c76 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()
H A Dvdso2c.h84 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()
/linux-6.15/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c209 for (var = elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset)); \
210 var < elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset) + elf64toh(shdr->sh_size)); var++)
227 return elf_ptr(char, elf64toh(shdr->sh_offset)); in section_begin()
/linux-6.15/arch/mips/kernel/
H A Dvpe.c612 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()
/linux-6.15/arch/s390/tools/
H A Drelocs.c206 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
233 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()
234 die("Seek to %" FMT " failed: %s\n", sec->shdr.sh_offset, strerror(errno)); in read_relocs()
/linux-6.15/drivers/remoteproc/
H A Dremoteproc_elf_loader.c334 u64 sh_offset; local
340 sh_offset = elf_shdr_get_sh_offset(class, shdr);
341 table = (struct resource_table *)(elf_data + sh_offset);
/linux-6.15/arch/arm/kernel/
H A Dvdso.c100 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section()
107 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
/linux-6.15/arch/powerpc/kernel/
H A Dmodule_32.c97 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
105 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
110 + sechdrs[i].sh_offset, in get_plt_size()
/linux-6.15/scripts/mod/
H A Dmodpost.c321 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
496 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
509 if (!nobits && sechdrs[i].sh_offset > info->size) in parse_elf()
511 filename, (unsigned long)sechdrs[i].sh_offset, in parse_elf()
518 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
523 info->no_trim_symbol = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
531 sechdrs[i].sh_offset; in parse_elf()
533 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
536 sechdrs[sh_link_idx].sh_offset; in parse_elf()
543 sechdrs[i].sh_offset; in parse_elf()
[all …]
/linux-6.15/arch/s390/include/asm/
H A Dmodule.h45 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
/linux-6.15/arch/arm64/kernel/
H A Dalternative.c215 .begin = (void *)hdr + alt->sh_offset, in apply_alternatives_vdso()
216 .end = (void *)hdr + alt->sh_offset + alt->sh_size, in apply_alternatives_vdso()

123