Home
last modified time | relevance | path

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

12

/linux/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()
477 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); in nop_mcount()
[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/arch/mips/boot/tools/
H A Drelocs.c284 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
310 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs()
312 sec->shdr.sh_offset, strerror(errno)); in read_strtabs()
334 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
336 sec->shdr.sh_offset, strerror(errno)); in read_symtabs()
378 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()
380 sec->shdr.sh_offset, strerror(errno)); in read_relocs()
614 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs()
616 sec_reloc->shdr.sh_offset, strerror(errno)); in emit_relocs()
/linux/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/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dgh100.c222 if (shdr[i].sh_offset < section_begin || in elf_validate_sections()
223 (u64)shdr[i].sh_offset + shdr[i].sh_size > length) in elf_validate_sections()
229 u32 crc32 = crc32_le(~0, elf + shdr[i].sh_offset, shdr[i].sh_size) ^ ~0; in elf_validate_sections()
250 const char *names = elf + shdr[ehdr->e_shstrndx].sh_offset; in elf_section()
255 return elf + shdr[i].sh_offset; in elf_section()
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dfw.c83 shdr->sh_offset = le32_to_cpu(p->sh_offset); in mm81x_fw_get_section_header()
129 sh_strs = (const char *)fw->data + sh_strtab.sh_offset; in mm81x_fw_load_fw()
175 mm81x_fw_parse_info(mors, fw->data + shdr.sh_offset, in mm81x_fw_load_fw()
238 sh_strs = (const char *)bcf->data + sh_strtab.sh_offset; in mm81x_fw_load_bcf()
253 bcf->data + shdr.sh_offset, in mm81x_fw_load_bcf()
273 reg_src = bcf->data + shdr.sh_offset; in mm81x_fw_load_bcf()
H A Dfw.h47 __le32 sh_offset; member
/linux/tools/perf/util/
H A Dsymbol-elf.c541 vi.offset = shdr->sh_offset + di->plt_got_data->d_off + i + disp; in get_plt_got_name()
584 snprintf(buf, buf_sz, "offset_%#" PRIx64 "@plt", (u64)shdr.sh_offset + i); in dso__synthesize_plt_got_symbols()
585 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); in dso__synthesize_plt_got_symbols()
631 f = dso__find_symbol_nocache(dso, shdr_plt.sh_offset); in dso__synthesize_plt_symbols()
632 if (f && f->start < shdr_plt.sh_offset && f->end > shdr_plt.sh_offset) in dso__synthesize_plt_symbols()
633 f->end = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
639 plt_sym = symbol__new(shdr_plt.sh_offset, plt_header_size, STB_GLOBAL, STT_FUNC, ".plt"); in dso__synthesize_plt_symbols()
657 plt_offset = plt_sec_shdr.sh_offset; in dso__synthesize_plt_symbols()
660 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
[all...]
/linux/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/arch/s390/kernel/
H A Dvdso.c154 start = (void *)hdr + alt->sh_offset; in vdso_apply_alternatives()
155 end = (void *)hdr + alt->sh_offset + alt->sh_size; in vdso_apply_alternatives()
/linux/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/arch/mips/kernel/
H A 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/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);
H A Dremoteproc_elf_helpers.h83 ELF_GEN_FIELD_GET_SET(shdr, sh_offset, u64) in ELF_GEN_FIELD_GET_SET()
/linux/arch/arm/kernel/
H A Dvdso.c98 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section()
105 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
H A Dmodule.c402 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_mod_section()
419 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/linux/scripts/mod/
H A Dmodpost.c334 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
508 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
516 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
521 if (!nobits && sechdrs[i].sh_offset > info->size) in parse_elf()
523 filename, (unsigned long)sechdrs[i].sh_offset, in parse_elf()
530 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
535 info->no_trim_symbol = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
543 sechdrs[i].sh_offset; in parse_elf()
545 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
548 sechdrs[sh_link_idx].sh_offset; in parse_elf()
[all …]
/linux/arch/s390/include/asm/
H A Dmodule.h45 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
/linux/arch/arm64/kernel/
H A Dalternative.c220 .begin = (void *)hdr + alt->sh_offset, in apply_alternatives_vdso()
221 .end = (void *)hdr + alt->sh_offset + alt->sh_size, in apply_alternatives_vdso()
/linux/arch/arm64/include/asm/
H A Dmodule.h59 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
/linux/arch/powerpc/kernel/
H A Dmodule.c26 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
H A Dmodule_64.c455 dedotify_versions((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
458 dedotify_ext_version_names((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
462 dedotify((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
465 + sechdrs[sechdrs[i].sh_link].sh_offset); in module_frob_arch_sections()
/linux/kernel/
H A Dcfi.c74 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_cfi_finalize()
/linux/arch/riscv/include/asm/
H A Dmodule.h120 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
/linux/tools/testing/selftests/sgx/
H A Dload.c151 symtab = (Elf64_Sym *)((char *)encl->bin + sections[i].sh_offset); in encl_get_entry()
159 sym_names = (char *)encl->bin + sections[i].sh_offset; in encl_get_entry()

12