Home
last modified time | relevance | path

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

/linux-4.4.14/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()
/linux-4.4.14/arch/mips/vdso/
Dgenvdso.h26 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
45 dyn = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
151 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
157 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
/linux-4.4.14/arch/x86/entry/vdso/
Dvdso2c.h64 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC()
87 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC()
89 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-4.4.14/arch/x86/kernel/
Dmachine_kexec_64.c423 rel = (void *)sechdrs[relsec].sh_offset; in arch_kexec_apply_relocations_add()
442 strtab = (char *)sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add()
445 shstrtab = (char *)sechdrs[ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add()
459 location = (void *)(section->sh_offset + rel[i].r_offset); in arch_kexec_apply_relocations_add()
470 sym = (Elf64_Sym *)symtabsec->sh_offset + in arch_kexec_apply_relocations_add()
Dmodule.c216 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/linux-4.4.14/arch/metag/kernel/
Dmodule.c109 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
117 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size()
122 + sechdrs[i].sh_offset, in get_plt_size()
/linux-4.4.14/drivers/remoteproc/
Dremoteproc_elf_loader.c222 name_table = elf_data + shdr[ehdr->e_shstrndx].sh_offset;
226 u32 offset = shdr->sh_offset;
301 table = (struct resource_table *)(elf_data + shdr->sh_offset);
/linux-4.4.14/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()
Dmodule.c39 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
Dvdso.c264 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section32()
271 return (void *)ehdr + sechdrs[i].sh_offset; in find_section32()
369 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section64()
376 return (void *)ehdr + sechdrs[i].sh_offset; in find_section64()
Dmodule_64.c376 dedotify_versions((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
384 dedotify((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections()
387 + sechdrs[sechdrs[i].sh_link].sh_offset); in module_frob_arch_sections()
/linux-4.4.14/arch/x86/tools/
Drelocs.c412 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
437 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs()
439 sec->shdr.sh_offset, strerror(errno)); in read_strtabs()
462 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs()
464 sec->shdr.sh_offset, strerror(errno)); in read_symtabs()
495 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs()
497 sec->shdr.sh_offset, strerror(errno)); in read_relocs()
/linux-4.4.14/arch/avr32/kernel/
Dmodule.c90 symbols = (void *)hdr + symtab->sh_offset; in module_frob_arch_sections()
91 strings = (void *)hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
108 rela = (void *)hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
/linux-4.4.14/scripts/mod/
Dmodpost.c486 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf()
494 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
499 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf()
502 (unsigned long)sechdrs[i].sh_offset, in parse_elf()
510 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
527 sechdrs[i].sh_offset; in parse_elf()
529 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
532 sechdrs[sh_link_idx].sh_offset; in parse_elf()
539 sechdrs[i].sh_offset; in parse_elf()
541 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf()
[all …]
Dfile2alias.c1345 + info->sechdrs[get_secindex(info, sym)].sh_offset in handle_moddevtable()
/linux-4.4.14/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()
Dmodule.c275 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/linux-4.4.14/kernel/
Dkexec_file.c711 sechdrs[i].sh_offset = (unsigned long)pi->ehdr + in __kexec_load_purgatory()
712 sechdrs[i].sh_offset; in __kexec_load_purgatory()
800 src = (char *) sechdrs[i].sh_offset; in __kexec_load_purgatory()
810 sechdrs[i].sh_offset = (unsigned long)(buf_addr + offset); in __kexec_load_purgatory()
963 strtab = (char *)sechdrs[sechdrs[i].sh_link].sh_offset; in kexec_purgatory_find_symbol()
964 syms = (Elf_Sym *)sechdrs[i].sh_offset; in kexec_purgatory_find_symbol()
1038 sym_buf = (unsigned char *)sechdrs[sym->st_shndx].sh_offset + in kexec_purgatory_get_set_symbol()
Dmodule.c2476 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
2777 && info->len < shdr->sh_offset + shdr->sh_size) { in rewrite_section_headers()
2784 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; in rewrite_section_headers()
2821 + info->sechdrs[info->hdr->e_shstrndx].sh_offset; in setup_load_info()
2833 + info->sechdrs[info->index.str].sh_offset; in setup_load_info()
/linux-4.4.14/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-4.4.14/arch/arm/kernel/
Dvdso.c108 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section()
115 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
Dmodule.c311 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_mod_section()
328 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
Dmodule-plts.c154 const Elf32_Rel *rels = (void *)ehdr + s->sh_offset; in module_frob_arch_sections()
/linux-4.4.14/arch/s390/kernel/
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()
/linux-4.4.14/include/uapi/linux/
Delf.h304 Elf32_Off sh_offset; member
317 Elf64_Off sh_offset; /* Section file offset */ member
/linux-4.4.14/tools/perf/util/
Dsymbol-elf.c286 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols()
886 map->reloc = map->start - tshdr.sh_addr + tshdr.sh_offset; in dso__load_sym()
963 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym()
981 map->pgoff = shdr.sh_offset; in dso__load_sym()
1000 map->pgoff = shdr.sh_offset; in dso__load_sym()
1019 start += map->start + shdr.sh_offset; in dso__load_sym()
1038 curr_map->pgoff = shdr.sh_offset; in dso__load_sym()
1058 (u64)shdr.sh_offset); in dso__load_sym()
1059 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym()
Dunwind-libunwind.c181 offset = shdr.sh_offset; in elf_section_offset()
Dprobe-event.c498 *address = shdr.sh_addr - shdr.sh_offset; in get_text_start_address()
/linux-4.4.14/lib/
Dbug.c97 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_bug_finalize()
/linux-4.4.14/arch/sparc/kernel/
Dmodule.c187 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in do_patch_sections()
/linux-4.4.14/arch/alpha/kernel/
Dmodule.c125 rela = (void *)hdr + s->sh_offset; in module_frob_arch_sections()
/linux-4.4.14/arch/blackfin/kernel/
Dmodule.c241 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c210 s->sh_offset = swab32(s->sh_offset); in convert_elf_shdrs()
/linux-4.4.14/arch/arm64/kernel/
Dmodule.c417 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
/linux-4.4.14/arch/sh/kernel/
Ddwarf.c1098 char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_dwarf_finalize()
/linux-4.4.14/arch/ia64/kernel/
Dmodule.c450 const Elf64_Rela *rels = (void *)ehdr + s->sh_offset; in module_frob_arch_sections()