/kernel/linux/linux-5.10/scripts/ |
H 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() [all...] |
H 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() 477 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) in nop_mcount() [all...] |
/third_party/libunwind/libunwind/src/ |
H A D | elfxx.c | 75 if (str_shdr->sh_offset + str_shdr->sh_size > ei->size) in string_table() 78 (unsigned long) (str_shdr->sh_offset + str_shdr->sh_size), in string_table() 83 Debug (16, "strtab=0x%lx\n", (long) str_shdr->sh_offset); in string_table() 84 return ei->image + str_shdr->sh_offset; in string_table() 114 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); in lookup_symbol() 123 (long) shdr->sh_offset, shdr->sh_type); in lookup_symbol() 232 compressed = ((uint8_t *) ei->image) + shdr->sh_offset; in extract_minidebuginfo() 362 if (shdr->sh_offset + shdr->sh_size > ei->size) in Elf_W() 366 (unsigned long) shdr->sh_offset + shdr->sh_size, in Elf_W() 372 secname, (unsigned long) shdr->sh_offset); in Elf_W() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | sorttable.h | 216 + _r(&(emloc->init_data_sec)->sh_offset); in sort_mcount_loc() 300 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort() 320 relocs = (void *)ehdr + _r(&s->sh_offset); in do_sort() 325 _r(&s->sh_offset)); in do_sort() 343 s->sh_offset); in do_sort() 348 s->sh_offset); in do_sort() 411 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset); in do_sort() 412 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_sort() 414 _r(&symtab_sec->sh_offset)); in do_sort() 429 for (sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_sort() [all...] |
H 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() 477 ret = make_nop((void *)ehdr, _w(shdr->sh_offset) in nop_mcount() [all...] |
/third_party/mesa3d/src/amd/common/ |
H A D | ac_rgp_elf_object_pack.c | 387 uint32_t sh_offset; in ac_rgp_file_write_elf_object() local 436 sh_offset = elf_size_calc; in ac_rgp_file_write_elf_object() 442 sec_hdr[1].sh_offset = sizeof(Elf64_Ehdr); in ac_rgp_file_write_elf_object() 449 sec_hdr[2].sh_offset = sec_hdr[1].sh_offset + sec_hdr[1].sh_size; in ac_rgp_file_write_elf_object() 455 sec_hdr[3].sh_offset = sec_hdr[2].sh_offset + in ac_rgp_file_write_elf_object() 464 sec_hdr[4].sh_offset = sec_hdr[3].sh_offset + sec_hdr[3].sh_size; in ac_rgp_file_write_elf_object() 473 elf_hdr.e_shoff = sh_offset; in ac_rgp_file_write_elf_object() [all...] |
/kernel/linux/linux-6.6/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 32 offset = (unsigned long)GET_LE(&sec->sh_offset); in extract() 105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in go() 129 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in go() 132 GET_LE(&strtab_hdr->sh_offset) + in go() 205 (unsigned long)GET_LE(&alt_sec->sh_offset)); in go() 211 (unsigned long)GET_LE(&extable_sec->sh_offset)); in go()
|
/third_party/elfio/elfio/ |
H A D | elfio_section.hpp | 207 ELFIO_GET_SET_ACCESS( Elf64_Off, offset, header.sh_offset ); 270 ( *translator )[( *convertor )( header.sh_offset )] ); 297 header.sh_offset = decltype( header.sh_offset )( data_offset ); 298 header.sh_offset = ( *convertor )( header.sh_offset );
|
/third_party/vixl/examples/aarch32/ |
H A D | disasm-a32.cc | 104 reinterpret_cast<const char*>(ehdr) + shdr_[ehdr->e_shstrndx].sh_offset; in SectionLocator() 131 reinterpret_cast<const char*>(ehdr) + strtab->sh_offset; in LocateSymbols() 136 reinterpret_cast<const char*>(ehdr) + symtab->sh_offset); in LocateSymbols() 178 shdr_[sym.st_shndx].sh_offset, in visit() 185 shdr_[sym.st_shndx].sh_offset - shdr_[sym.st_shndx].sh_addr, in visit() 290 func_size = (shndx.sh_offset + shndx.sh_size) - sres->first; in main()
|
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
H 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, strerro in emit_relocs() [all...] |
/kernel/linux/linux-6.6/arch/mips/boot/tools/ |
H 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, strerro in emit_relocs() [all...] |
/third_party/elfutils/libdwfl/ |
H A D | relocate.c | 575 if (unlikely (shdr->sh_offset < ehsize in relocate_section() 576 || tshdr->sh_offset < ehsize)) in relocate_section() 586 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section() 587 && shdr->sh_offset < shdrs_end)) in relocate_section() 591 if (unlikely (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section() 592 && tshdr->sh_offset < shdrs_end)) in relocate_section() 605 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section() 606 && shdr->sh_offset < phdrs_end)) in relocate_section() 610 if (unlikely (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section() 611 && tshdr->sh_offset < phdrs_en in relocate_section() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/ |
H A D | relocs.c | 218 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs() 220 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 242 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs() 244 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 277 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs() 279 sec->shdr.sh_offset, strerror(errno)); in read_relocs() 494 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs() 496 sec_reloc->shdr.sh_offset, strerror(errno)); in emit_relocs()
|
/kernel/linux/linux-5.10/arch/mips/vdso/ |
H A D | genvdso.h | 20 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in patch_vdso() 96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols() 102 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols()
|
/kernel/linux/linux-6.6/arch/mips/vdso/ |
H A D | genvdso.h | 20 shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in patch_vdso() 96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols() 102 strtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in get_symbols()
|
/kernel/linux/linux-5.10/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 70 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in go() 92 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in go() 95 GET_LE(&strtab_hdr->sh_offset) + in go() 164 (unsigned long)GET_LE(&alt_sec->sh_offset)); in go()
|
/third_party/elfutils/tests/ |
H A D | elfcopy.c | 221 offs[last_off] = shdr.sh_offset; in copy_elf() 228 && last_shdr.sh_offset + last_shdr.sh_size == shdr.sh_offset in copy_elf() 243 offs[last_off] = shdr.sh_offset; in copy_elf() 290 shdr.sh_offset = offs[last_off++]; in copy_elf()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
H A D | ELFEmitter.cpp | 365 To.sh_offset = *From->ShOffset; in overrideFields() 375 if (Header.sh_offset) in initImplicitHeader() 472 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSectionHeaders() 630 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSymtabSectionHeader() 656 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initStrtabSectionHeader() 700 Ret.push_back({H.sh_offset, H.sh_size, H.sh_type, H.sh_addralign}); in getPhdrFragments() 774 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 810 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 837 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 864 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeade in writeSectionContent() [all...] |
/kernel/linux/linux-6.6/arch/x86/tools/ |
H A D | relocs.c | 459 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 484 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs() 486 sec->shdr.sh_offset, strerror(errno)); in read_strtabs() 511 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 513 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 531 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs() 533 sec->shdr.sh_offset, strerror(errno)); in read_symtabs() 571 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_relocs() 573 sec->shdr.sh_offset, strerro in read_relocs() [all...] |
/third_party/elfutils/libelf/ |
H A D | gelf_update_shdr.c | 65 || unlikely (src->sh_offset > 0xffffffffull) in gelf_update_shdr() 80 COPY (sh_offset); in gelf_update_shdr()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | machine_kexec_64.c | 441 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 442 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 444 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 462 location += section->sh_offset; in arch_kexec_apply_relocations_add() 474 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 312 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 313 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 315 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 323 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 349 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | elf_kexec.c | 377 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 378 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 380 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 389 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 398 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | machine_kexec_64.c | 401 strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 402 shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset; in arch_kexec_apply_relocations_add() 404 rel = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 422 location += section->sh_offset; in arch_kexec_apply_relocations_add() 434 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
|
/third_party/libunwind/libunwind/src/ia64/ |
H A D | Gfind_unwind_table.c | 77 strtab = (char *) edi->ei.image + str_shdr->sh_offset; in find_gp() 83 gp = ((Elf64_Addr *) ((char *) edi->ei.image + shdr->sh_offset))[1]; in find_gp()
|