/third_party/mesa3d/src/amd/common/ |
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()
|
/third_party/libunwind/src/ |
D | elfxx.c | 75 if (str_shdr->sh_offset + str_shdr->sh_size > ei->size) in elf_w() 78 (unsigned long) (str_shdr->sh_offset + str_shdr->sh_size), in elf_w() 83 Debug (16, "strtab=0x%lx\n", (long) str_shdr->sh_offset); in elf_w() 84 return ei->image + str_shdr->sh_offset; in elf_w() 114 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); in elf_w() 123 (long) shdr->sh_offset, shdr->sh_type); in elf_w() 192 symtab = (Elf_W (Sym) *) ((char *) ei->image + shdr->sh_offset); in elf_w() 308 compressed = ((uint8_t *) ei->image) + shdr->sh_offset; in elf_w() 430 if (shdr->sh_offset + shdr->sh_size > ei->size) in Elf_W() 434 (unsigned long) shdr->sh_offset + shdr->sh_size, in Elf_W() [all …]
|
/third_party/vixl/examples/aarch32/ |
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()
|
/third_party/elfio/elfio/ |
D | elfio_section.hpp | 207 ELFIO_GET_SET_ACCESS( Elf64_Off, offset, header.sh_offset ); 270 ( *translator )[( *convertor )( header.sh_offset )] ); in load_data() 297 header.sh_offset = decltype( header.sh_offset )( data_offset ); in save() 298 header.sh_offset = ( *convertor )( header.sh_offset ); in save()
|
/third_party/elfutils/tests/ |
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()
|
D | elfstrmerge.c | 327 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS 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()
|
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()
|
D | asm-tst9.c | 256 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main() 258 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
|
D | test-elf_cntl_gelf_getshdr.c | 102 printf ("Section at offset %#0" PRIx64 "\n", shdr->sh_offset); in main()
|
/third_party/elfutils/libdwfl/ |
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_end)) in relocate_section()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
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, SHeader.sh_addralign); in writeSectionContent() [all …]
|
/third_party/skia/buildtools/third_party/eu-strip/ |
D | fix-elf-size.patch | 30 ? shdr->sh_offset + shdr->sh_size : 0)); 39 - update_if_changed (shdr->sh_offset, (GElf_Word) size, 40 + update_if_changed (shdr->sh_offset, size,
|
/third_party/elfutils/libelf/ |
D | gelf_update_shdr.c | 65 || unlikely (src->sh_offset > 0xffffffffull) in gelf_update_shdr() 80 COPY (sh_offset); in gelf_update_shdr()
|
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()
|
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()
|
D | gelf_getshdr.c | 74 COPY (sh_offset); in gelf_getshdr()
|
D | elf32_offscn.c | 74 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset) in elfw2()
|
D | elf_begin.c | 408 if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize) in file_read_elf() 410 <= maxsize - elf->state.elf32.shdr[cnt].sh_offset)) in file_read_elf() 414 + elf->state.elf32.shdr[cnt].sh_offset); in file_read_elf() 507 if (likely (elf->state.elf64.shdr[cnt].sh_offset < maxsize) in file_read_elf() 509 <= maxsize - elf->state.elf64.shdr[cnt].sh_offset)) in file_read_elf() 513 + elf->state.elf64.shdr[cnt].sh_offset); in file_read_elf()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
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()
|
/third_party/libunwind/src/ia64/ |
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()
|
/third_party/elfutils/src/ |
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 …]
|
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()
|
/third_party/libunwind/src/dwarf/ |
D | Gfind_proc_info-lsb.c | 129 (shdr->sh_offset + shdr->sh_size > ei.size)) in load_debug_frame() 138 Elf_W (Chdr) *chdr = (shdr->sh_offset + ei.image); in load_debug_frame() 154 shdr->sh_offset + ei.image + sizeof(*chdr), in load_debug_frame() 165 shdr->sh_size, *bufsize, shdr->sh_offset); in load_debug_frame() 189 memcpy(*buf, shdr->sh_offset + ei.image, *bufsize); in load_debug_frame() 192 *bufsize, shdr->sh_offset); in load_debug_frame()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | ELF.h | 239 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin() 242 Twine::utohexstr(Shdr.sh_offset) + ") or size (0x" + in notes_begin() 246 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, Err); in notes_begin() 397 uintX_t Offset = Sec->sh_offset; in getSectionContentsAsArray() 576 size_t Pos = Section->sh_offset + Entry * sizeof(T); in getEntry()
|
/third_party/toybox/toys/posix/ |
D | file.c | 156 long sh_offset = elf_int(shdr+8+8*(bits+1), 4*(bits+1)); local 163 char *note = map+sh_offset; 172 if (sh_offset+sh_size>TT.len) goto bad;
|