/linux/scripts/ |
A D | sorttable.h | 229 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()
|
A D | recordmcount.h | 248 *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() 525 Elf_Sym const *const sym0 = (Elf_Sym const *)(_w(symhdr->sh_offset) in find_secsym_ndx() [all …]
|
A 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/arch/x86/entry/vdso/ |
A D | vdso2c.h | 32 offset = (unsigned long)GET_LE(&sec->sh_offset); in BITSFUNC() 105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC() 129 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC() 132 GET_LE(&strtab_hdr->sh_offset) + in BITSFUNC() 204 (unsigned long)GET_LE(&alt_sec->sh_offset)); in BITSFUNC() 210 (unsigned long)GET_LE(&extable_sec->sh_offset)); in BITSFUNC()
|
/linux/arch/mips/boot/tools/ |
A 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/arch/mips/vdso/ |
A 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/arch/s390/kernel/ |
A D | machine_kexec_file.c | 303 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 304 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 306 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 314 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 340 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
A D | module.c | 148 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections() 149 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections() 168 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections() 531 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
|
/linux/arch/x86/tools/ |
A D | relocs.c | 458 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 483 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs() 485 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 510 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 512 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 530 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 532 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 570 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs() 572 sec->shdr.sh_offset, strerror(errno)); in read_relocs()
|
/linux/arch/x86/kernel/ |
A D | machine_kexec_64.c | 413 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 414 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 416 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 434 location += section->sh_offset; in arch_kexec_apply_relocations_add() 446 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
|
/linux/arch/powerpc/kernel/ |
A D | module_32.c | 96 (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()
|
A D | module_64.c | 298 dedotify_versions((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections() 306 dedotify((void *)hdr + sechdrs[i].sh_offset, in module_frob_arch_sections() 309 + sechdrs[sechdrs[i].sh_link].sh_offset); in module_frob_arch_sections()
|
A D | module.c | 29 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_section()
|
/linux/arch/sparc/vdso/ |
A 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()
|
A 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/arch/mips/kernel/ |
A 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/arch/arm64/kvm/hyp/nvhe/ |
A D | gen-hyprel.c | 206 for (var = elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset)); \ 207 var < elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset) + elf64toh(shdr->sh_size)); var++) 224 return elf_ptr(char, elf64toh(shdr->sh_offset)); in section_begin()
|
/linux/scripts/mod/ |
A D | modpost.c | 338 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset() 553 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf() 566 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf() 569 (unsigned long)sechdrs[i].sh_offset, in parse_elf() 577 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf() 588 sechdrs[i].sh_offset; in parse_elf() 590 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf() 593 sechdrs[sh_link_idx].sh_offset; in parse_elf() 600 sechdrs[i].sh_offset; in parse_elf() 602 sechdrs[i].sh_offset + sechdrs[i].sh_size; in parse_elf() [all …]
|
/linux/drivers/remoteproc/ |
A D | remoteproc_elf_loader.c | 334 u64 sh_offset; local 340 sh_offset = elf_shdr_get_sh_offset(class, shdr); 341 table = (struct resource_table *)(elf_data + sh_offset);
|
A D | pru_rproc.c | 663 name_table = elf_data + name_table_shdr->sh_offset; in pru_rproc_find_interrupt_map() 667 u32 offset = shdr->sh_offset; in pru_rproc_find_interrupt_map() 710 u64 sh_offset; in pru_rproc_parse_fw() local 729 sh_offset = elf_shdr_get_sh_offset(class, shdr); in pru_rproc_parse_fw() 730 pru->pru_interrupt_map = (struct pru_irq_rsc *)(elf_data + sh_offset); in pru_rproc_parse_fw()
|
/linux/arch/arm/kernel/ |
A D | vdso.c | 113 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section() 120 return (void *)ehdr + sechdrs[i].sh_offset; in find_section()
|
A D | module.c | 353 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in find_mod_section() 370 const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_finalize()
|
/linux/tools/perf/util/ |
A D | symbol-elf.c | 358 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() 983 sym->st_value -= shdr->sh_addr - shdr->sh_offset; in dso__process_kernel_symbol() 998 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 1017 map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 1035 start += map->start + shdr->sh_offset; in dso__process_kernel_symbol() 1054 curr_map->pgoff = shdr->sh_offset; in dso__process_kernel_symbol() 1114 dso->text_offset = tshdr.sh_addr - tshdr.sh_offset; in dso__load_sym_internal() 1268 (u64)shdr.sh_offset); in dso__load_sym_internal() 1269 sym.st_value -= shdr.sh_addr - shdr.sh_offset; in dso__load_sym_internal() 2322 sdt_adjust_loc(tmp, shdr.sh_offset); in populate_sdt_note() [all …]
|
/linux/include/uapi/linux/ |
A D | elf.h | 309 Elf32_Off sh_offset; member 322 Elf64_Off sh_offset; /* Section file offset */ member
|
/linux/kernel/ |
A D | kexec_file.c | 951 src = (void *)pi->ehdr + sechdrs[i].sh_offset; in kexec_purgatory_setup_sechdrs() 956 sechdrs[i].sh_offset = offset; in kexec_purgatory_setup_sechdrs() 1095 strtab = (void *)ehdr + sechdrs[sechdrs[i].sh_link].sh_offset; in kexec_purgatory_find_symbol() 1096 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol() 1170 sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; in kexec_purgatory_get_set_symbol()
|