/kernel/linux/linux-5.10/arch/x86/tools/ |
H A 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()
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | vpe.c | 612 secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in vpe_elfload() 621 (len < sechdrs[i].sh_offset + sechdrs[i].sh_size)) { in vpe_elfload() 630 sechdrs[i].sh_offset; in vpe_elfload() 637 sechdrs[strindex].sh_offset; in vpe_elfload() 717 sechdrs[strindex].sh_offset; in vpe_elfload() 724 sechdrs[i].sh_offset; in vpe_elfload()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | symbol-elf.c | 609 vi.offset = shdr->sh_offset + di->plt_got_data->d_off + i + disp; in get_plt_got_name() 652 snprintf(buf, buf_sz, "offset_%#" PRIx64 "@plt", (u64)shdr.sh_offset + i); in dso__synthesize_plt_got_symbols() 653 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); in dso__synthesize_plt_got_symbols() 699 f = dso__find_symbol_nocache(dso, shdr_plt.sh_offset); in dso__synthesize_plt_symbols() 700 if (f && f->start < shdr_plt.sh_offset && f->end > shdr_plt.sh_offset) in dso__synthesize_plt_symbols() 701 f->end = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() 707 plt_sym = symbol__new(shdr_plt.sh_offset, plt_header_size, STB_GLOBAL, STT_FUNC, ".plt"); in dso__synthesize_plt_symbols() 725 plt_offset = plt_sec_shdr.sh_offset; in dso__synthesize_plt_symbols() 728 plt_offset = shdr_plt.sh_offset; in dso__synthesize_plt_symbols() [all...] |
/kernel/linux/linux-5.10/scripts/mod/ |
H A D | modpost.c | 326 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() 561 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf() 566 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf() 567 fatal("%s is truncated. sechdrs[i].sh_offset=%lu > " 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() 594 sechdrs[i].sh_offset; in parse_elf() 596 sechdrs[i].sh_offset in parse_elf() [all...] |
/kernel/linux/linux-5.10/arch/sparc/vdso/ |
H A D | vdso2c.h | 84 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in go() 86 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in go()
|
H 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()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | alternative.c | 185 begin = (void *)hdr + alt->sh_offset, in apply_vdso_alternatives() 186 end = (void *)hdr + alt->sh_offset + alt->sh_size, in apply_vdso_alternatives()
|
/kernel/linux/linux-6.6/arch/sparc/vdso/ |
H A D | vdso2c.h | 84 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in go() 86 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in go()
|
H 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()
|
/third_party/elfutils/tests/ |
H A D | asm-tst2.c | 222 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main() 224 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
|
H A D | elfstrmerge.c | 327 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS in main() 602 sh_addralign, sh_size and sh_offset. Otherwise libelf will in main() 614 newshdr.sh_offset = shdr->sh_offset; in main() 620 newshdr.sh_offset = last_offset; in main() 629 newshdr.sh_offset = 0; in main()
|
/third_party/elfutils/libelf/ |
H A D | elf32_updatefile.c | 55 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections() 56 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections() 59 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections() 60 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections() 275 + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset) in __elfw2() 309 + elf->start_offset + shdr->sh_offset); in __elfw2() 712 int64_t scn_start = elf->start_offset + shdr->sh_offset; in __elfw2()
|
H A D | elf32_getshdr.c | 142 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2() 191 CONVERT (shdr[cnt].sh_offset); in ElfW2()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 291 relas = (void *)pi->ehdr + relsec->sh_offset; in arch_kexec_apply_relocations_add() 299 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add() 313 loc += section->sh_offset; in arch_kexec_apply_relocations_add()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H 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()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/ |
H 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()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | module_32.c | 97 (void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 105 sort((void *)hdr + sechdrs[i].sh_offset, in get_plt_size() 110 + sechdrs[i].sh_offset, in get_plt_size()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | remoteproc_elf_loader.c | 321 u64 sh_offset; local 327 sh_offset = elf_shdr_get_sh_offset(class, shdr); 328 table = (struct resource_table *)(elf_data + sh_offset);
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H 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);
|
/kernel/linux/linux-6.6/scripts/mod/ |
H A D | modpost.c | 340 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset() 507 sechdrs[i].sh_offset = TO_NATIVE(sechdrs[i].sh_offset); in parse_elf() 515 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf() 520 if (!nobits && sechdrs[i].sh_offset > info->size) { in parse_elf() 521 fatal("%s is truncated. sechdrs[i].sh_offset=%lu > sizeof(*hrd)=%zu\n", in parse_elf() 522 filename, (unsigned long)sechdrs[i].sh_offset, in parse_elf() 530 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf() 540 sechdrs[i].sh_offset; in parse_elf() 542 sechdrs[i].sh_offset in parse_elf() [all...] |
/kernel/linux/linux-5.10/scripts/ |
H 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()
|
/kernel/linux/linux-6.6/scripts/ |
H 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()
|
/third_party/elfutils/src/ |
H A D | strings.c | 716 if (shdr->sh_offset > (Elf64_Off) fdlen in read_elf() 717 || fdlen - shdr->sh_offset < shdr->sh_size) in read_elf() 731 result |= read_block (fd, fname, fdlen, shdr->sh_offset, in read_elf() 732 shdr->sh_offset + shdr->sh_size); in read_elf()
|
H A D | strip.c | 900 if (lastoffset < shdr.sh_offset + filesz) in handle_debug_relocs() 901 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs() 932 shdr.sh_offset = ((lastoffset + shdr.sh_addralign - 1) in handle_debug_relocs() 942 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs() 943 *last_offset = shdr.sh_offset; in handle_debug_relocs() 1290 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 1783 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 1844 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 2130 if (shdr_info[cnt].shdr.sh_offset == 0) in handle_elf() 2131 shdr_info[cnt].shdr.sh_offset in handle_elf() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceELFSection.h | 80 void setFileOffset(Elf64_Off sh_offset) { Header.sh_offset = sh_offset; } in setFileOffset() argument 321 Str.writeAddrOrOffset<IsELF64>(Header.sh_offset); in writeHeader()
|