Home
last modified time | relevance | path

Searched refs:shdr (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
H A Delf_checker.cpp348 elfItemField.shdr = reinterpret_cast<ElfShdr*>(reinterpret_cast<char*>(ehdr) + elfSHOff); in GetElfItem()
354 elfItemField.sections.data()[cnt].shdr.e32 = in GetElfItem()
355 reinterpret_cast<llvm::ELF::Elf32_Shdr*>(&elfItemField.shdr[cnt]); in GetElfItem()
357 elfItemField.sections.data()[cnt].shdr.e64 = in GetElfItem()
358 reinterpret_cast<llvm::ELF::Elf64_Shdr*>(&elfItemField.shdr[cnt]); in GetElfItem()
361 if (SECUREC_LIKELY(elfItemField.shdr[cnt].sh_offset < maxSize) && in GetElfItem()
362 SECUREC_LIKELY(elfItemField.shdr[cnt].sh_size <= maxSize - elfItemField.shdr[cnt].sh_offset)) { in GetElfItem()
364 (reinterpret_cast<char*>(mapAddress) + offset + elfItemField.shdr[cnt].sh_offset); in GetElfItem()
371 if (elfItemField.shdr[cn in GetElfItem()
[all...]
H A Delf_checker.h217 } shdr; member
304 int secHeaderMalloced; /* Nonzero if shdr array was allocated. */
312 llvm::ELF::Elf32_Shdr* shdr; /* Used when reading from a file. */ member
322 int secHeaderMalloced; /* Nonzero if shdr array was allocated. */
336 llvm::ELF::Elf64_Shdr* shdr; /* Used when reading from a file. */ member
346 int secHeaderMalloced; /* Nonzero if shdr array was allocated. */
H A Delf_builder.h67 void AllocateShdr(std::unique_ptr<llvm::ELF::Elf64_Shdr []> &shdr, const uint32_t &secNum);
75 void FixSymtab(llvm::ELF::Elf64_Shdr* shdr);
H A Dgdb_jit.cpp186 Elf64_Shdr *shdr = &shdrTab[i]; in CollectStubAnInfo() local
187 const char *name = &shstrtab[shdr->sh_name]; in CollectStubAnInfo()
189 textHdr = shdr; in CollectStubAnInfo()
191 asmstubHdr = shdr; in CollectStubAnInfo()
193 symtabHdr = shdr; in CollectStubAnInfo()
195 strtabHdr = shdr; in CollectStubAnInfo()
H A Delf_builder.cpp326 void ElfBuilder::AllocateShdr(std::unique_ptr<llvm::ELF::Elf64_Shdr []> &shdr, const uint32_t &secNum) in AllocateShdr() argument
328 shdr = std::make_unique<llvm::ELF::Elf64_Shdr []>(secNum); in AllocateShdr()
329 if (memset_s(reinterpret_cast<void *>(&shdr[0]), in AllocateShdr()
471 void ElfBuilder::FixSymtab(llvm::ELF::Elf64_Shdr* shdr) in FixSymtab() argument
509 shdr->sh_info = static_cast<uint32_t>(firstGlobal); in FixSymtab()
510 shdr->sh_link = strTabIndex; in FixSymtab()
551 std::unique_ptr<llvm::ELF::Elf64_Shdr []> shdr; in PackELFSections() local
552 AllocateShdr(shdr, secNum); in PackELFSections()
561 auto &curShdr = shdr[i]; in PackELFSections()
617 MergeSymtabSections(file, moduleInfo, curSecOffset, shdr[asmSecInde in PackELFSections()
[all...]
H A Delf_reader.cpp52 llvm::ELF::Elf64_Shdr *shdr = reinterpret_cast<llvm::ELF::Elf64_Shdr *>(addr + ehdr->e_shoff); in ParseELFSections() local
54 llvm::ELF::Elf64_Shdr strdr = shdr[ehdr->e_shstrndx]; in ParseELFSections()
60 llvm::ELF::Elf64_Word shName = shdr[i].sh_name; in ParseELFSections()
72 llvm::ELF::Elf64_Shdr secShdr = shdr[secId]; in ParseELFSections()
/arkcompiler/ets_runtime/ecmascript/ohos/
H A Daot_runtime_info.h395 llvm::ELF::Elf64_Shdr *shdr = reinterpret_cast<llvm::ELF::Elf64_Shdr *>(addr + ehdr->e_shoff); in ParseELFSectionsForBuildId() local
397 llvm::ELF::Elf64_Shdr strdr = shdr[ehdr->e_shstrndx]; in ParseELFSectionsForBuildId()
401 llvm::ELF::Elf64_Word shName = shdr[i].sh_name; in ParseELFSectionsForBuildId()
411 llvm::ELF::Elf64_Shdr secShdr = shdr[secId]; in ParseELFSectionsForBuildId()

Completed in 7 milliseconds