Home
last modified time | relevance | path

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

12

/Linux-v5.10/scripts/
Dsorttable.h229 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()
Drecordmcount.h243 *symtab = (void *)ehdr + relhdr->sh_offset; in find_symtab()
245 *symtab_shndx = (void *)ehdr + relhdr->sh_offset; in find_symtab()
269 uint_t const old_shstr_sh_offset = _w(shstr->sh_offset); in append_func()
277 shstr->sh_offset = _w(sb.st_size); in append_func()
307 mcsec.sh_offset = _w(t); in append_func()
322 mcsec.sh_offset = _w((void *)mlocp - (void *)mloc0 + t); in append_func()
378 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset) in get_sym_str_and_relp()
381 *sym0 = (Elf_Sym const *)(_w(symsec->sh_offset) in get_sym_str_and_relp()
384 *str0 = (char const *)(_w(strsec->sh_offset) in get_sym_str_and_relp()
472 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); in nop_mcount()
[all …]
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-v5.10/arch/mips/boot/tools/
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()
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()
/Linux-v5.10/arch/x86/entry/vdso/
Dvdso2c.h70 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()
/Linux-v5.10/arch/mips/vdso/
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-v5.10/arch/x86/kernel/
Dmachine_kexec_64.c441 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()
/Linux-v5.10/arch/powerpc/kernel/
Dmodule_32.c96 (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()
Dvdso.c240 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()
Dmodule.c27 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
Dmodule_64.c306 dedotify_versions((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
314 dedotify((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
317 + sechdrs[sechdrs[i].sh_link].sh_offset); in module_frob_arch_sections()
/Linux-v5.10/arch/sparc/vdso/
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()
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-v5.10/drivers/remoteproc/
Dremoteproc_elf_loader.c321 u64 sh_offset; local
327 sh_offset = elf_shdr_get_sh_offset(class, shdr);
328 table = (struct resource_table *)(elf_data + sh_offset);
Dremoteproc_elf_helpers.h79 ELF_GEN_FIELD_GET_SET(shdr, sh_offset, u64)
/Linux-v5.10/arch/mips/kernel/
Dvpe.c613 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()
/Linux-v5.10/arch/x86/tools/
Drelocs.c431 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()
/Linux-v5.10/arch/s390/kernel/
Dmachine_kexec_file.c273 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
281 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
295 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
Dmodule.c138 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()
494 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/Linux-v5.10/scripts/mod/
Dmodpost.c334 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
561 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
569 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
574 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf()
577 (unsigned long)sechdrs[i].sh_offset, in parse_elf()
585 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
602 sechdrs[i].sh_offset; in parse_elf()
604 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
607 sechdrs[sh_link_idx].sh_offset; in parse_elf()
614 sechdrs[i].sh_offset; in parse_elf()
[all …]
/Linux-v5.10/arch/arm/kernel/
Dvdso.c122 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section()
129 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
/Linux-v5.10/arch/powerpc/oprofile/cell/
Dvma_map.c189 shdr.sh_offset + in create_vma_map()
195 spu_elf_start + shdr_str.sh_offset + in create_vma_map()
/Linux-v5.10/include/uapi/linux/
Delf.h309 Elf32_Off sh_offset; member
322 Elf64_Off sh_offset; /* Section file offset */ member
/Linux-v5.10/tools/perf/util/
Dsymbol-elf.c353 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 …]
/Linux-v5.10/kernel/
Dkexec_file.c939 src = (void *)pi->ehdr + sechdrs[i].sh_offset; in kexec_purgatory_setup_sechdrs()
944 sechdrs[i].sh_offset = offset; in kexec_purgatory_setup_sechdrs()
1083 strtab = (void *)ehdr + sechdrs[sechdrs[i].sh_link].sh_offset; in kexec_purgatory_find_symbol()
1084 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol()
1158 sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; in kexec_purgatory_get_set_symbol()

12