/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | module_section_des.cpp | 21 std::string ModuleSectionDes::GetSecName(const ElfSecName idx) in GetSecName() 24 case ElfSecName::RODATA: in GetSecName() 26 case ElfSecName::RODATA_CST4: in GetSecName() 28 case ElfSecName::RODATA_CST8: in GetSecName() 30 case ElfSecName::RODATA_CST16: in GetSecName() 32 case ElfSecName::RODATA_CST32: in GetSecName() 34 case ElfSecName::TEXT: in GetSecName() 36 case ElfSecName::DATA: in GetSecName() 38 case ElfSecName::GOT: in GetSecName() 40 case ElfSecName::RELATEXT: in GetSecName() [all …]
|
D | elf_builder.h | 33 ElfBuilder(const std::vector<ModuleSectionDes> &des, const std::vector<ElfSecName> §ions); 44 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> GetFullSecInfo() const in GetFullSecInfo() 54 uint32_t GetShIndex(ElfSecName section) const; 57 unsigned GetPFlag(ElfSecName segment) const; 58 ElfSecName GetSegmentName(const ElfSecName &secName) const; 74 std::map<ElfSecName, llvm::ELF::Elf64_Shdr> sectionToShdr_; 75 std::map<ElfSecName, llvm::ELF::Elf64_Xword> sectionToAlign_; 76 std::map<ElfSecName, ElfSecName> sectionToSegment_; 77 std::map<ElfSecName, uintptr_t> sectionToFileOffset_; 78 std::map<ElfSecName, unsigned> segmentToFlag_; [all …]
|
D | elf_builder.cpp | 24 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> §ions = in AddShStrTabSection() 49 if (sections.find(ElfSecName::SHSTRTAB) != sections.end()) { in AddShStrTabSection() 50 sections.erase(ElfSecName::SHSTRTAB); in AddShStrTabSection() 52 …sections[ElfSecName::SHSTRTAB] = std::make_pair(reinterpret_cast<uint64_t>(shStrTabPtr_.get()), si… in AddShStrTabSection() 60 const std::map<ElfSecName, std::pair<uint64_t, uint32_t>> §ions = GetFullSecInfo(); in DumpSection() 73 const std::vector<ElfSecName> §ions): des_(des), sections_(sections) in ElfBuilder() 86 {ElfSecName::TEXT, AOTFileInfo::PAGE_ALIGN}, in Initialize() 87 {ElfSecName::STRTAB, 1}, in Initialize() 88 {ElfSecName::SYMTAB, AOTFileInfo::DATA_SEC_ALIGN}, in Initialize() 89 {ElfSecName::SHSTRTAB, AOTFileInfo::DATA_SEC_ALIGN}, in Initialize() [all …]
|
D | stub_file_info.cpp | 42 des.SetSecAddrAndSize(ElfSecName::ARK_FUNCENTRY, funcEntryAddr, funcEntrySize); in Save() 45 des.SetSecAddrAndSize(ElfSecName::ARK_ASMSTUB, asmStubAddr, asmStubSize); in Save() 48 des.SetSecAddrAndSize(ElfSecName::ARK_MODULEINFO, secSizeInfoAddr, sizeof(uint32_t)); in Save() 77 std::vector<ElfSecName> secs = GetDumpSectionNames(); in MmapLoad() 88 uint64_t funcEntryAddr = des.GetSecAddr(ElfSecName::ARK_FUNCENTRY); in MmapLoad() 89 uint32_t funcEntrySize = des.GetSecSize(ElfSecName::ARK_FUNCENTRY); in MmapLoad() 93 uint64_t asmStubAddr = des.GetSecAddr(ElfSecName::ARK_ASMSTUB); in MmapLoad() 94 uint32_t asmStubSize = des.GetSecSize(ElfSecName::ARK_ASMSTUB); in MmapLoad() 104 entry.codeAddr_ += moduleDes.GetSecAddr(ElfSecName::TEXT); in MmapLoad() 125 std::vector<ElfSecName> secs = GetDumpSectionNames(); in Load() [all …]
|
D | module_section_des.h | 36 static std::string GetSecName(ElfSecName idx); 38 void UpdateRODataInfo(uint64_t &addr, uint32_t &size, ElfSecName sec) const in UpdateRODataInfo() 52 UpdateRODataInfo(addr, size, ElfSecName::RODATA); in GetMergedRODataAddrAndSize() 53 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST4); in GetMergedRODataAddrAndSize() 54 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST8); in GetMergedRODataAddrAndSize() 55 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST16); in GetMergedRODataAddrAndSize() 56 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST32); in GetMergedRODataAddrAndSize() 70 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &GetSectionsInfo() in GetSectionsInfo() 75 const std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &GetSectionsInfo() const in GetSectionsInfo() 122 void EraseSec(ElfSecName idx) in EraseSec() [all …]
|
D | an_file_info.cpp | 71 std::vector<ElfSecName> secs = GetDumpSectionNames(); in Load() 102 uint64_t secAddr = des.GetSecAddr(ElfSecName::ARK_FUNCENTRY); in ParseFunctionEntrySection() 103 uint32_t secSize = des.GetSecSize(ElfSecName::ARK_FUNCENTRY); in ParseFunctionEntrySection() 117 funcDes.codeAddr_ += des.GetSecAddr(ElfSecName::TEXT); in UpdateFuncEntries() 128 const std::vector<ElfSecName> &AnFileInfo::GetDumpSectionNames() in GetDumpSectionNames() 130 static const std::vector<ElfSecName> secNames = { in GetDumpSectionNames() 131 ElfSecName::TEXT, in GetDumpSectionNames() 132 ElfSecName::STRTAB, in GetDumpSectionNames() 133 ElfSecName::SYMTAB, in GetDumpSectionNames() 134 ElfSecName::SHSTRTAB, in GetDumpSectionNames() [all …]
|
D | elf_reader.cpp | 48 void ElfReader::ParseELFSections(ModuleSectionDes &des, std::vector<ElfSecName> &secs) in ParseELFSections() 57 ElfSecName sec = secs[j]; in ParseELFSections() 75 if (sec == ElfSecName::ARK_FUNCENTRY) { in ParseELFSections() 78 if (sec == ElfSecName::ARK_STACKMAP) { in ParseELFSections() 87 void ElfReader::ParseELFSections(std::vector<ModuleSectionDes> &des, std::vector<ElfSecName> &secs) in ParseELFSections() 99 std::set<ElfSecName> secSet(secs.begin(), secs.end()); in ParseELFSections() 100 for (ElfSecName sec : secSet) { in ParseELFSections() 120 case ElfSecName::TEXT: { in ParseELFSections() 126 case ElfSecName::ARK_STACKMAP: { in ParseELFSections() 132 case ElfSecName::SHSTRTAB: in ParseELFSections() [all …]
|
D | elf_reader.h | 34 void ParseELFSections(ModuleSectionDes &des, std::vector<ElfSecName> &secs); 35 void ParseELFSections(std::vector<ModuleSectionDes> &des, std::vector<ElfSecName> &secs); 37 std::vector<ElfSecName> &secs);
|
D | aot_file_info.cpp | 44 uint64_t addr = d.GetSecAddr(ElfSecName::TEXT); in CalCallSiteInfo() 45 uint32_t size = d.GetSecSize(ElfSecName::TEXT); in CalCallSiteInfo()
|
D | stub_file_info.h | 82 const std::vector<ElfSecName> &GetDumpSectionNames();
|
D | an_file_info.h | 77 static const std::vector<ElfSecName> &GetDumpSectionNames();
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | binary_section.h | 25 enum class ElfSecName : uint8_t { enum 60 explicit ElfSection(ElfSecName idx) in ElfSection() 67 value_ = static_cast<ElfSecName>(idx); in ElfSection() 73 value_ = ElfSecName::RODATA; in ElfSection() 75 value_ = ElfSecName::RODATA_CST4; in ElfSection() 77 value_ = ElfSecName::RODATA_CST8; in ElfSection() 79 value_ = ElfSecName::RODATA_CST16; in ElfSection() 81 value_ = ElfSecName::RODATA_CST32; in ElfSection() 83 value_ = ElfSecName::TEXT; in ElfSection() 85 value_ = ElfSecName::DATA; in ElfSection() [all …]
|
D | file_generators.h | 41 bool IsRelaSection(ElfSecName sec) const in IsRelaSection() 43 … return sec == ElfSecName::RELATEXT || sec == ElfSecName::STRTAB || sec == ElfSecName::SYMTAB; in IsRelaSection() 58 uint32_t GetSectionSize(ElfSecName sec) const; 60 uintptr_t GetSectionAddr(ElfSecName sec) const; 66 UpdateRODataInfo(addr, size, ElfSecName::RODATA); in GetMergedRODataAddrAndSize() 67 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST4); in GetMergedRODataAddrAndSize() 68 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST8); in GetMergedRODataAddrAndSize() 69 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST16); in GetMergedRODataAddrAndSize() 70 UpdateRODataInfo(addr, size, ElfSecName::RODATA_CST32); in GetMergedRODataAddrAndSize() 89 return assembler_->GetSectionAddr(ElfSecName::TEXT); in GetTextAddr() [all …]
|
D | file_generators.cpp | 27 uint32_t stackmapSize = des.GetSecSize(ElfSecName::LLVM_STACKMAP); in CollectStackMapDes() 29 uint64_t addr = des.GetSecAddr(ElfSecName::LLVM_STACKMAP); in CollectStackMapDes() 33 uint64_t textAddr = des.GetSecAddr(ElfSecName::TEXT); in CollectStackMapDes() 42 des.EraseSec(ElfSecName::LLVM_STACKMAP); in CollectStackMapDes() 51 uint32_t stackmapSize = des.GetSecSize(ElfSecName::LLVM_STACKMAP); in CollectAnStackMapDes() 53 uint64_t addr = des.GetSecAddr(ElfSecName::LLVM_STACKMAP); in CollectAnStackMapDes() 57 uint64_t textAddr = des.GetSecAddr(ElfSecName::TEXT); in CollectAnStackMapDes() 64 des.EraseSec(ElfSecName::LLVM_STACKMAP); in CollectAnStackMapDes() 79 auto codeBuff = assembler_->GetSectionAddr(ElfSecName::TEXT); in CollectFuncEntryInfo() 93 funcSize = codeBuff + assembler_->GetSectionSize(ElfSecName::TEXT) - entrys[j]; in CollectFuncEntryInfo() [all …]
|
D | llvm_codegen.h | 86 uint8_t *GetSectionAddr(ElfSecName sec) const; 88 size_t GetSectionSize(ElfSecName sec) const; 104 std::array<sectionInfo, static_cast<int>(ElfSecName::SIZE)> secInfos_; 140 uintptr_t GetSectionAddr(ElfSecName sec) const in GetSectionAddr() 145 uint32_t GetSectionSize(ElfSecName sec) const in GetSectionSize()
|
D | llvm_codegen.cpp | 198 uint8_t *CodeInfo::GetSectionAddr(ElfSecName sec) const in GetSectionAddr() 205 size_t CodeInfo::GetSectionSize(ElfSecName sec) const in GetSectionSize()
|