| /Linux-v5.4/scripts/ |
| D | sortextable.h | 126 secstrtab = (const char *)ehdr + _r(&shstrtab_sec->sh_offset); in do_func() 136 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); in do_func() 145 (const char *)ehdr + _r(&shdr[i].sh_offset)); in do_func() 156 _r(&symtab_sec->sh_offset)); in do_func() 161 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_func() 163 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset); in do_func() 179 sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_func() 199 _r(&sort_needed_sec->sh_offset) + in do_func()
|
| D | recordmcount.h | 194 uint_t const old_shstr_sh_offset = _w(shstr->sh_offset); in append_func() 199 shstr->sh_offset = _w(sb.st_size); in append_func() 227 mcsec.sh_offset = _w(t); in append_func() 242 mcsec.sh_offset = _w((void *)mlocp - (void *)mloc0 + t); in append_func() 299 Elf_Rel const *const rel0 = (Elf_Rel const *)(_w(relhdr->sh_offset) in get_sym_str_and_relp() 302 *sym0 = (Elf_Sym const *)(_w(symsec->sh_offset) in get_sym_str_and_relp() 305 *str0 = (char const *)(_w(strsec->sh_offset) in get_sym_str_and_relp() 393 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); in nop_mcount() 439 Elf_Sym const *const sym0 = (Elf_Sym const *)(_w(symhdr->sh_offset) in find_secsym_ndx() 528 char const *const shstrtab = (char const *)(_w(shstr->sh_offset) in do_func()
|
| D | insert-sys-cert.c | 82 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.4/arch/mips/boot/tools/ |
| D | relocs.c | 283 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.4/arch/x86/entry/vdso/ |
| D | vdso2c.h | 71 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() 97 GET_LE(&strtab_hdr->sh_offset) + in BITSFUNC() 166 (unsigned long)GET_LE(&alt_sec->sh_offset)); in BITSFUNC()
|
| /Linux-v5.4/arch/mips/vdso/ |
| D | genvdso.h | 20 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.4/drivers/remoteproc/ |
| D | remoteproc_elf_loader.c | 214 name_table = elf_data + shdr[ehdr->e_shstrndx].sh_offset; 218 u32 offset = shdr->sh_offset; 286 table = (struct resource_table *)(elf_data + shdr->sh_offset);
|
| /Linux-v5.4/arch/x86/kernel/ |
| D | machine_kexec_64.c | 508 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 509 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 511 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 529 location += section->sh_offset; in arch_kexec_apply_relocations_add() 541 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | module_32.c | 111 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 119 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 124 + sechdrs[i].sh_offset, in get_plt_size()
|
| D | vdso.c | 241 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section32() 248 return (void *)ehdr + sechdrs[i].sh_offset; in find_section32() 346 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section64() 353 return (void *)ehdr + sechdrs[i].sh_offset; in find_section64()
|
| D | module.c | 27 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
|
| D | module_64.c | 356 dedotify_versions((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections() 364 dedotify((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections() 367 + sechdrs[sechdrs[i].sh_link].sh_offset); in module_frob_arch_sections()
|
| /Linux-v5.4/arch/sparc/vdso/ |
| D | vma.c | 76 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()
|
| D | vdso2c.h | 84 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.4/scripts/mod/ |
| D | modpost.c | 306 elf->sechdrs[elf->secindex_strings].sh_offset + in sech_name() 560 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf() 568 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf() 573 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf() 576 (unsigned long)sechdrs[i].sh_offset, in parse_elf() 584 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf() 598 sechdrs[i].sh_offset - in parse_elf() 605 sechdrs[i].sh_offset; in parse_elf() 607 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf() 610 sechdrs[sh_link_idx].sh_offset; in parse_elf() [all …]
|
| /Linux-v5.4/arch/mips/kernel/ |
| D | vpe.c | 613 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.4/arch/x86/tools/ |
| D | relocs.c | 431 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.4/arch/s390/kernel/ |
| D | machine_kexec_file.c | 273 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()
|
| D | module.c | 137 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections() 138 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections() 157 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections() 465 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
|
| /Linux-v5.4/arch/powerpc/oprofile/cell/ |
| D | vma_map.c | 189 shdr.sh_offset + in create_vma_map() 195 spu_elf_start + shdr_str.sh_offset + in create_vma_map()
|
| /Linux-v5.4/arch/arm/kernel/ |
| D | vdso.c | 118 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section() 125 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
|
| D | module.c | 331 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_mod_section() 348 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | elf.h | 308 Elf32_Off sh_offset; member 321 Elf64_Off sh_offset; /* Section file offset */ member
|
| /Linux-v5.4/tools/perf/util/ |
| D | symbol-elf.c | 351 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() 858 sym->st_value -= shdr->sh_addr - shdr->sh_offset; in dso__process_kernel_symbol() 873 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 892 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 910 start += map->start + shdr->sh_offset; in dso__process_kernel_symbol() 926 curr_map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 1004 dso->text_offset = tshdr.sh_addr - tshdr.sh_offset; in dso__load_sym() 1133 (u64)shdr.sh_offset); in dso__load_sym() 1134 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym() 2136 sdt_adjust_loc(tmp, shdr.sh_offset); in populate_sdt_note() [all …]
|
| /Linux-v5.4/kernel/ |
| D | kexec_file.c | 939 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()
|