Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Dmodule_section_des.cpp21 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 …]
Delf_builder.h33 ElfBuilder(const std::vector<ModuleSectionDes> &des, const std::vector<ElfSecName> &sections);
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 …]
Delf_builder.cpp24 std::map<ElfSecName, std::pair<uint64_t, uint32_t>> &sections = 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>> &sections = GetFullSecInfo(); in DumpSection()
73 const std::vector<ElfSecName> &sections): 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 …]
Dstub_file_info.cpp42 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 …]
Dmodule_section_des.h36 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 …]
Dan_file_info.cpp71 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 …]
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::SHSTRTAB: in ParseELFSections()
[all …]
Delf_reader.h34 void ParseELFSections(ModuleSectionDes &des, std::vector<ElfSecName> &secs);
35 void ParseELFSections(std::vector<ModuleSectionDes> &des, std::vector<ElfSecName> &secs);
37 std::vector<ElfSecName> &secs);
Daot_file_info.cpp44 uint64_t addr = d.GetSecAddr(ElfSecName::TEXT); in CalCallSiteInfo()
45 uint32_t size = d.GetSecSize(ElfSecName::TEXT); in CalCallSiteInfo()
Dstub_file_info.h82 const std::vector<ElfSecName> &GetDumpSectionNames();
Dan_file_info.h77 static const std::vector<ElfSecName> &GetDumpSectionNames();
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbinary_section.h25 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 …]
Dfile_generators.h41 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 …]
Dfile_generators.cpp27 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 …]
Dllvm_codegen.h86 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()
Dllvm_codegen.cpp198 uint8_t *CodeInfo::GetSectionAddr(ElfSecName sec) const in GetSectionAddr()
205 size_t CodeInfo::GetSectionSize(ElfSecName sec) const in GetSectionSize()