Home
last modified time | relevance | path

Searched refs:sh_offset (Results 1 – 25 of 107) sorted by relevance

12345

/external/vixl/examples/aarch32/
Ddisasm-a32.cc104 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()
/external/elfutils/tests/
Delfcopy.c221 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()
Delfstrmerge.c286 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS in main()
604 newshdr.sh_offset = shdr->sh_offset; in main()
610 newshdr.sh_offset = last_offset; in main()
619 newshdr.sh_offset = 0; in main()
Dasm-tst2.c222 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
224 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
Dasm-tst9.c256 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main()
258 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
/external/elfutils/libdwfl/
Drelocate.c573 if (unlikely (shdr->sh_offset < ehsize in relocate_section()
574 || tshdr->sh_offset < ehsize)) in relocate_section()
584 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
585 && shdr->sh_offset < shdrs_end)) in relocate_section()
589 if (unlikely (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
590 && tshdr->sh_offset < shdrs_end)) in relocate_section()
603 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
604 && shdr->sh_offset < phdrs_end)) in relocate_section()
608 if (unlikely (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
609 && tshdr->sh_offset < phdrs_end)) in relocate_section()
/external/llvm/include/llvm/Object/
DELF.h119 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset); in symbol_begin()
136 return reinterpret_cast<const Elf_Rela *>(base() + sec->sh_offset); in rela_begin()
153 return reinterpret_cast<const Elf_Rel *>(base() + sec->sh_offset); in rel_begin()
246 uintX_t Offset = Sec->sh_offset; in getSectionContentsAsArray()
409 return reinterpret_cast<const T *>(base() + Section->sh_offset + in getEntry()
430 uint64_t Offset = Section->sh_offset; in getStringTable()
434 StringRef Data((const char *)base() + Section->sh_offset, Size); in getStringTable()
445 reinterpret_cast<const Elf_Word *>(base() + Section.sh_offset); in getSHNDXTable()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DELFEmitter.cpp365 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 …]
/external/google-breakpad/src/common/linux/
Dsynth_elf_unittest.cc246 EXPECT_EQ(0U, shdr[0].sh_offset); in TYPED_TEST()
257 EXPECT_EQ(sizeof(Ehdr), shdr[1].sh_offset); in TYPED_TEST()
321 EXPECT_EQ(0U, shdr[0].sh_offset); in TYPED_TEST()
332 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr), shdr[1].sh_offset); in TYPED_TEST()
343 EXPECT_EQ(0U, shdr[2].sh_offset); in TYPED_TEST()
354 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096, shdr[3].sh_offset); in TYPED_TEST()
Ddump_symbols.cc216 GetOffset<ElfClass, uint8_t>(elf_header, stab_section->sh_offset); in LoadStabs()
218 GetOffset<ElfClass, uint8_t>(elf_header, stabstr_section->sh_offset); in LoadStabs()
301 section_names->sh_offset) + in LoadDwarf()
304 section->sh_offset); in LoadDwarf()
405 GetOffset<ElfClass, uint8_t>(elf_header, section->sh_offset); in LoadDwarfCFI()
681 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in LoadSymbols()
748 symtab_section->sh_offset); in LoadSymbols()
751 strtab_section->sh_offset); in LoadSymbols()
776 dynsym_section->sh_offset); in LoadSymbols()
779 dynstr_section->sh_offset); in LoadSymbols()
[all …]
Delfutils.cc64 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in FindElfClassSection()
73 *section_start = elf_base + section->sh_offset; in FindElfClassSection()
/external/llvm-project/lld/test/ELF/
Dnobits-offset.s7 ## p_offset will be set to the sh_offset field of the section. Check we align
8 ## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod
/external/elfutils/libelf/
Dgelf_update_shdr.c65 || unlikely (src->sh_offset > 0xffffffffull) in gelf_update_shdr()
80 COPY (sh_offset); in gelf_update_shdr()
Delf32_updatefile.c58 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
59 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
62 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections()
63 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections()
278 + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset) in __elfw2()
312 + elf->start_offset + shdr->sh_offset); in __elfw2()
715 int64_t scn_start = elf->start_offset + shdr->sh_offset; in __elfw2()
Delf32_getshdr.c144 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2()
193 CONVERT (shdr[cnt].sh_offset); in ElfW2()
/external/llvm-project/lld/test/ELF/linkerscript/
Dnobits-offset.s11 ## p_offset will be set to the sh_offset field of the section. Check we align
12 ## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp253 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSectionHeaders()
296 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign), in initSymtabSectionHeader()
308 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign) in initStrtabSectionHeader()
348 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent()
375 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent()
413 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent()
444 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent()
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
Dbinary-paddr.test1 ## The computed LMA of a section in a PT_LOAD equals sh_offset-p_offset+p_paddr.
75 ## LMA = sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x4000 = 0x4000.
88 ## Check that we use sh_offset instead of sh_addr to decide where to write section contents.
121 ## LMA = sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x3000 = 0x3000.
/external/toybox/toys/posix/
Dfile.c137 unsigned long sh_offset; local
142 sh_offset = elf_int(shdr+8+8*(bits+1), 4*(bits+1));
144 if (sh_offset>TT.len || sh_size>TT.len-sh_offset) goto bad;
150 char *note = map+sh_offset;
/external/swiftshader/third_party/subzero/src/
DIceELFSection.h80 void setFileOffset(Elf64_Off sh_offset) { Header.sh_offset = sh_offset; } in setFileOffset() argument
321 Str.writeAddrOrOffset<IsELF64>(Header.sh_offset); in writeHeader()
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Dpacked-relocs.test56 …ons from SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
60 …tions in SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
63 …ons from SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
139 …ions from SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
143 …ations in SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
146 …ions from SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
/external/llvm-project/llvm/lib/InterfaceStub/
DELFObjHandler.cpp265 DynSym.Content.write(Data + DynSym.Shdr.sh_offset); in write()
266 DynStr.Content.write(Data + DynStr.Shdr.sh_offset); in write()
267 DynTab.Content.write(Data + DynTab.Shdr.sh_offset); in write()
268 ShStrTab.Content.write(Data + ShStrTab.Shdr.sh_offset); in write()
291 StrTab.Shdr.sh_offset = StrTab.Offset; in fillStrTabShdr()
304 SymTab.Shdr.sh_offset = SymTab.Offset; in fillSymTabShdr()
317 DynTab.Shdr.sh_offset = DynTab.Offset; in fillDynTabShdr()
/external/elfutils/src/
Dstrip.c891 if (lastoffset < shdr.sh_offset + filesz) in handle_debug_relocs()
892 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs()
923 shdr.sh_offset = ((lastoffset + shdr.sh_addralign - 1) in handle_debug_relocs()
933 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs()
934 *last_offset = shdr.sh_offset; in handle_debug_relocs()
1282 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1776 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
1838 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf()
2127 if (shdr_info[cnt].shdr.sh_offset == 0) in handle_elf()
2128 shdr_info[cnt].shdr.sh_offset in handle_elf()
[all …]
Dstrings.c718 if (shdr->sh_offset > (Elf64_Off) fdlen in read_elf()
719 || fdlen - shdr->sh_offset < shdr->sh_size) in read_elf()
733 result |= read_block (fd, fname, fdlen, shdr->sh_offset, in read_elf()
734 shdr->sh_offset + shdr->sh_size); in read_elf()
/external/llvm-project/lld/test/ELF/invalid/
Dverneed-shared.test6 ## sh_offset(SHT_GNU_verneed) is out of bounds.
9 # SHOFFSET: error: {{.*}}.so: section [index 1] has a sh_offset (0xffffffff) + sh_size (0x0) that i…

12345