Home
last modified time | relevance | path

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

12

/Linux-v4.19/scripts/
Dsortextable.h128 secstrtab = (const char *)ehdr + _r(&shstrtab_sec->sh_offset); in do_func()
138 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); in do_func()
147 (const char *)ehdr + _r(&shdr[i].sh_offset)); in do_func()
158 _r(&symtab_sec->sh_offset)); in do_func()
163 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_func()
165 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset); in do_func()
181 sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_func()
201 _r(&sort_needed_sec->sh_offset) + in do_func()
Drecordmcount.h195 uint_t const old_shstr_sh_offset = _w(shstr->sh_offset); in append_func()
200 shstr->sh_offset = _w(sb.st_size); in append_func()
223 mcsec.sh_offset = _w(t); in append_func()
237 mcsec.sh_offset = _w((void *)mlocp - (void *)mloc0 + t); in append_func()
287 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset) in get_sym_str_and_relp()
290 *sym0 = (Elf_Sym const *)(_w(symsec->sh_offset) in get_sym_str_and_relp()
293 *str0 = (char const *)(_w(strsec->sh_offset) in get_sym_str_and_relp()
380 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); in nop_mcount()
423 Elf_Sym const *const sym0 = (Elf_Sym const *)(_w(symhdr->sh_offset) in find_secsym_ndx()
509 char const *const shstrtab = (char const *)(_w(shstr->sh_offset) in do_func()
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-v4.19/arch/x86/entry/vdso/
Dvdso2c.h71 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC()
94 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC()
96 const char *name = raw_addr + GET_LE(&strtab_hdr->sh_offset) + in BITSFUNC()
165 (unsigned long)GET_LE(&alt_sec->sh_offset)); in BITSFUNC()
/Linux-v4.19/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-v4.19/arch/mips/vdso/
Dgenvdso.h24 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
100 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
106 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
/Linux-v4.19/arch/s390/kernel/
Dmachine_kexec_file.c155 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
163 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
177 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
Dmodule.c130 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections()
131 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
150 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
458 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/Linux-v4.19/arch/x86/kernel/
Dmachine_kexec_64.c410 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
411 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add()
413 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add()
431 location += section->sh_offset; in arch_kexec_apply_relocations_add()
443 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
/Linux-v4.19/drivers/remoteproc/
Dremoteproc_elf_loader.c222 name_table = elf_data + shdr[ehdr->e_shstrndx].sh_offset;
226 u32 offset = shdr->sh_offset;
295 table = (struct resource_table *)(elf_data + shdr->sh_offset);
/Linux-v4.19/arch/powerpc/kernel/
Dmodule_32.c123 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
131 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
136 + sechdrs[i].sh_offset, in get_plt_size()
Dkexec_elf_64.c331 if (shdr->sh_offset + shdr->sh_size < shdr->sh_offset) { in elf_is_shdr_sane()
334 } else if (shdr->sh_offset + shdr->sh_size > buf_len) { in elf_is_shdr_sane()
357 shdr->sh_offset = elf_addr_to_cpu(ehdr, buf_shdr->sh_offset); in elf_read_shdr()
Dvdso.c267 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section32()
274 return (void *)ehdr + sechdrs[i].sh_offset; in find_section32()
372 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section64()
379 return (void *)ehdr + sechdrs[i].sh_offset; in find_section64()
Dmodule.c39 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
Dmodule_64.c361 dedotify_versions((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
374 dedotify((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
377 + sechdrs[sechdrs[i].sh_link].sh_offset); in module_frob_arch_sections()
/Linux-v4.19/arch/x86/tools/
Drelocs.c414 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
439 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs()
441 sec->shdr.sh_offset, strerror(errno)); in read_strtabs()
464 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs()
466 sec->shdr.sh_offset, strerror(errno)); in read_symtabs()
497 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs()
499 sec->shdr.sh_offset, strerror(errno)); in read_relocs()
/Linux-v4.19/scripts/mod/
Dmodpost.c271 elf->sechdrs[elf->secindex_strings].sh_offset + in sech_name()
500 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
508 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
513 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf()
516 (unsigned long)sechdrs[i].sh_offset, in parse_elf()
524 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
541 sechdrs[i].sh_offset; in parse_elf()
543 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
546 sechdrs[sh_link_idx].sh_offset; in parse_elf()
553 sechdrs[i].sh_offset; in parse_elf()
[all …]
/Linux-v4.19/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-v4.19/arch/sparc/vdso/
Dvdso2c.h85 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in BITSFUNC()
87 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in BITSFUNC()
/Linux-v4.19/arch/powerpc/oprofile/cell/
Dvma_map.c193 shdr.sh_offset + in create_vma_map()
199 spu_elf_start + shdr_str.sh_offset + in create_vma_map()
/Linux-v4.19/arch/arm/kernel/
Dvdso.c129 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section()
136 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
Dmodule.c327 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_mod_section()
344 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/Linux-v4.19/include/uapi/linux/
Delf.h308 Elf32_Off sh_offset; member
321 Elf64_Off sh_offset; /* Section file offset */ member
/Linux-v4.19/tools/perf/util/
Dsymbol-elf.c315 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
813 sym->st_value -= shdr->sh_addr - shdr->sh_offset; in dso__process_kernel_symbol()
828 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol()
847 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol()
865 start += map->start + shdr->sh_offset; in dso__process_kernel_symbol()
881 curr_map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol()
959 dso->text_offset = tshdr.sh_addr - tshdr.sh_offset; in dso__load_sym()
1088 (u64)shdr.sh_offset); in dso__load_sym()
1089 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym()
2064 base_off = shdr.sh_offset; in populate_sdt_note()
/Linux-v4.19/kernel/
Dkexec_file.c831 src = (void *)pi->ehdr + sechdrs[i].sh_offset; in kexec_purgatory_setup_sechdrs()
836 sechdrs[i].sh_offset = offset; in kexec_purgatory_setup_sechdrs()
975 strtab = (void *)ehdr + sechdrs[sechdrs[i].sh_link].sh_offset; in kexec_purgatory_find_symbol()
976 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol()
1050 sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; in kexec_purgatory_get_set_symbol()

12