Home
last modified time | relevance | path

Searched refs:ElfSecName (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
H A Dmodule_section_des.cpp19 std::string ModuleSectionDes::GetSecName(const ElfSecName idx) in GetSecName()
22 case ElfSecName::RODATA: in GetSecName()
24 case ElfSecName::RODATA_CST4: in GetSecName()
26 case ElfSecName::RODATA_CST8: in GetSecName()
28 case ElfSecName::RODATA_CST16: in GetSecName()
30 case ElfSecName::RODATA_CST32: in GetSecName()
32 case ElfSecName::TEXT: in GetSecName()
34 case ElfSecName::DATA: in GetSecName()
36 case ElfSecName::GOT: in GetSecName()
38 case ElfSecName in GetSecName()
[all...]
H A Delf_builder.h34 const std::vector<ElfSecName> &sections);
51 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> GetFullSecInfo() const in GetFullSecInfo()
61 uint32_t GetShIndex(ElfSecName section) const;
64 unsigned GetPFlag(ElfSecName segment) const;
65 ElfSecName GetSegmentName(const ElfSecName &secName) const;
83 std::map<ElfSecName, llvm::ELF::Elf64_Shdr> sectionToShdr_;
84 std::map<ElfSecName, llvm::ELF::Elf64_Xword> sectionToAlign_;
85 std::map<ElfSecName, ElfSecName> sectionToSegment
[all...]
H A Dstub_file_info.cpp41 des.SetSecAddrAndSize(ElfSecName::ARK_FUNCENTRY, funcEntryAddr, funcEntrySize); in Save()
44 des.SetSecAddrAndSize(ElfSecName::ARK_ASMSTUB, asmStubAddr, asmStubSize); in Save()
47 des.SetSecAddrAndSize(ElfSecName::ARK_MODULEINFO, secSizeInfoAddr, sizeof(uint32_t)); in Save()
81 std::vector<ElfSecName> secs = GetDumpSectionNames(); in MmapLoad()
92 uint64_t funcEntryAddr = des.GetSecAddr(ElfSecName::ARK_FUNCENTRY); in MmapLoad()
93 uint32_t funcEntrySize = des.GetSecSize(ElfSecName::ARK_FUNCENTRY); in MmapLoad()
97 uint64_t asmStubAddr = des.GetSecAddr(ElfSecName::ARK_ASMSTUB); in MmapLoad()
98 uint32_t asmStubSize = des.GetSecSize(ElfSecName::ARK_ASMSTUB); in MmapLoad()
108 entry.codeAddr_ += moduleDes.GetSecAddr(ElfSecName::TEXT); in MmapLoad()
129 std::vector<ElfSecName> sec in Load()
[all...]
H A Delf_builder.cpp21 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &sections = in AddShStrTabSection()
47 if (sections.find(ElfSecName::SHSTRTAB) != sections.end()) { in AddShStrTabSection()
48 sections.erase(ElfSecName::SHSTRTAB); in AddShStrTabSection()
50 sections[ElfSecName::SHSTRTAB] = std::make_pair(reinterpret_cast<uint64_t>(shStrTabPtr_.get()), size); in AddShStrTabSection()
90 const std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &sections = GetFullSecInfo(); in DumpSection()
103 const std::vector<ElfSecName> &sections): des_(des), sections_(sections) in ElfBuilder()
116 {ElfSecName::TEXT, AOTFileInfo::PAGE_ALIGN}, in Initialize()
117 {ElfSecName::STRTAB, 1}, in Initialize()
118 {ElfSecName::SYMTAB, AOTFileInfo::DATA_SEC_ALIGN}, in Initialize()
119 {ElfSecName in Initialize()
[all...]
H A Dmodule_section_des.h38 static std::string GetSecName(ElfSecName idx);
41 uint64_t &addrAfterText, uint32_t &sizeAfterText, ElfSecName sec) const in UpdateRODataInfo()
64 for (uint8_t i = static_cast<uint8_t>(ElfSecName::RODATA); i <= static_cast<uint8_t>(ElfSecName::RODATA_CST32); in GetMergedRODataAddrAndSize()
67 static_cast<ElfSecName>(i)); in GetMergedRODataAddrAndSize()
82 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &GetSectionsInfo() in GetSectionsInfo()
87 const std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &GetSectionsInfo() const in GetSectionsInfo()
134 void EraseSec(ElfSecName idx) in EraseSec()
139 void SetSecAddrAndSize(ElfSecName idx, uint64_t addr, uint32_t size) in SetSecAddrAndSize()
145 uint64_t GetSecAddr(const ElfSecName id
[all...]
H A Delf_reader.cpp48 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 in ParseELFSections()
[all...]
H A Dan_file_info.cpp58 std::vector<ElfSecName> secs = GetDumpSectionNames(); in LoadInternal()
134 uint64_t secAddr = des.GetSecAddr(ElfSecName::ARK_FUNCENTRY); in ParseFunctionEntrySection()
135 uint32_t secSize = des.GetSecSize(ElfSecName::ARK_FUNCENTRY); in ParseFunctionEntrySection()
149 funcDes.codeAddr_ += des.GetSecAddr(ElfSecName::TEXT); in UpdateFuncEntries()
161 const std::vector<ElfSecName> &AnFileInfo::GetDumpSectionNames() in GetDumpSectionNames()
163 static const std::vector<ElfSecName> secNames = { in GetDumpSectionNames()
164 ElfSecName::TEXT, in GetDumpSectionNames()
165 ElfSecName::STRTAB, in GetDumpSectionNames()
166 ElfSecName::SYMTAB, in GetDumpSectionNames()
167 ElfSecName in GetDumpSectionNames()
[all...]
H A Delf_reader.h36 void ParseELFSections(ModuleSectionDes &des, std::vector<ElfSecName> &secs);
37 void ParseELFSections(std::vector<ModuleSectionDes> &des, std::vector<ElfSecName> &secs);
39 std::vector<ElfSecName> &secs);
H A Daot_file_info.cpp40 uint64_t addr = d.GetSecAddr(ElfSecName::TEXT); in CalCallSiteInfo()
41 uint32_t size = d.GetSecSize(ElfSecName::TEXT); in CalCallSiteInfo()
H A Dan_file_info.h99 static const std::vector<ElfSecName> &GetDumpSectionNames();
H A Dstub_file_info.h116 const std::vector<ElfSecName> &GetDumpSectionNames();
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dbinary_section.h25 enum class ElfSecName : uint8_t { class
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 in ElfSection()
[all...]
H A Dfile_generators.h53 bool IsRelaSection(ElfSecName sec) const in IsRelaSection()
55 return sec == ElfSecName::RELATEXT; in IsRelaSection()
68 uint32_t GetSectionSize(ElfSecName sec) const;
70 uintptr_t GetSectionAddr(ElfSecName sec) const;
78 for (uint8_t i = static_cast<uint8_t>(ElfSecName::RODATA); i <= static_cast<uint8_t>(ElfSecName::RODATA_CST32); in GetMergedRODataAddrAndSize()
81 static_cast<ElfSecName>(i)); in GetMergedRODataAddrAndSize()
106 return assembler_->GetSectionAddr(ElfSecName::TEXT); in GetTextAddr()
111 return assembler_->GetSectionSize(ElfSecName::TEXT); in GetTextSize()
115 uint64_t &addrAfterText, uint32_t &sizeAfterText, ElfSecName se in UpdateRODataInfo()
[all...]
H A Dcode_generator.h115 uint8_t *GetSectionAddr(ElfSecName sec) const;
117 size_t GetSectionSize(ElfSecName sec) const;
133 std::array<sectionInfo, static_cast<int>(ElfSecName::SIZE)> secInfos_;
149 uintptr_t GetSectionAddr(ElfSecName sec) const in GetSectionAddr()
154 uint32_t GetSectionSize(ElfSecName sec) const in GetSectionSize()
H A Dfile_generators.cpp44 uint32_t stackmapSize = des.GetSecSize(ElfSecName::LLVM_STACKMAP); in CollectStackMapDes()
46 uint64_t addr = des.GetSecAddr(ElfSecName::LLVM_STACKMAP); in CollectStackMapDes()
50 uint64_t textAddr = des.GetSecAddr(ElfSecName::TEXT); in CollectStackMapDes()
59 des.EraseSec(ElfSecName::LLVM_STACKMAP); in CollectStackMapDes()
73 uint32_t stackmapSize = des.GetSecSize(ElfSecName::LLVM_STACKMAP); in CollectAnStackMapDes()
75 uint64_t addr = des.GetSecAddr(ElfSecName::LLVM_STACKMAP); in CollectAnStackMapDes()
79 uint64_t textAddr = des.GetSecAddr(ElfSecName::TEXT); in CollectAnStackMapDes()
86 des.EraseSec(ElfSecName::LLVM_STACKMAP); in CollectAnStackMapDes()
114 auto codeBuff = assembler->GetSectionAddr(ElfSecName::TEXT); in CollectFuncEntryInfo()
130 funcSize = codeBuff + assembler->GetSectionSize(ElfSecName in CollectFuncEntryInfo()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/llvm/
H A Dllvm_codegen.cpp311 uint8_t *CodeInfo::GetSectionAddr(ElfSecName sec) const in GetSectionAddr()
318 size_t CodeInfo::GetSectionSize(ElfSecName sec) const in GetSectionSize()

Completed in 9 milliseconds