/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...] |
/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...] |
/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()
|
/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...] |
/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()
|
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()
|
H A 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()
|
H A D | test-elf_cntl_gelf_getshdr.c | 102 printf ("Section at offset %#0" PRIx64 "\n", shdr->sh_offset); in main()
|
/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...] |
/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()
|
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()
|
H A D | gelf_getshdr.c | 74 COPY (sh_offset); in gelf_getshdr()
|
H A D | elf32_offscn.c | 74 if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset) in elfw2() 79 sh_offset. We presume the caller is looking for a nonempty in elfw2()
|
/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()
|
/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()
|
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/lumeassetcompiler/src/ |
H A D | elf64.h | 49 Elf64_Off sh_offset; member
|
H A D | elf32.h | 48 Elf32_Off sh_offset; member
|
/third_party/libunwind/libunwind/src/dwarf/ |
H A D | Gfind_proc_info-lsb.c | 129 (shdr->sh_offset + shdr->sh_size > ei.size)) in load_debug_frame() 139 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/ |
H A 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() 407 " has a sh_offset (0x" + Twine::utohexstr(Offset) + in getSectionContentsAsArray() 412 " has a sh_offset (0x" + Twine::utohexstr(Offset) + in getSectionContentsAsArray() 576 size_t Pos = Section->sh_offset + Entry * sizeof(T); in getEntry()
|
/third_party/toybox/toys/posix/ |
H A D | file.c | 156 long sh_offset = elf_int(shdr+8+8*(bits+1), 4*(bits+1)); in do_elf_file() local 163 char *note = map+sh_offset; in do_elf_file() 172 if (sh_offset+sh_size>TT.len) goto bad; in do_elf_file()
|