Home
last modified time | relevance | path

Searched refs:getSection (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/compile/mclinker/lib/Object/
DObjectBuilder.cpp45 LDSection* output_sect = m_Module.getSection(output_name); in CreateSection()
67 LDSection* target = m_Module.getSection(output_name); in MergeSection()
108 data = pair.second->getSection()->getSectionData(); in MergeSection()
112 pInputSection.setAlign(pair.second->getSection()->align()); in MergeSection()
133 uint64_t offset = pTo.getSection().size(); in MoveSectionData()
135 if (pFrom.getSection().align() > 1) { in MoveSectionData()
137 unsigned int alignment = pFrom.getSection().align(); in MoveSectionData()
160 pTo.getSection().setSize(offset); in MoveSectionData()
DObjectLinker.cpp314 LDSection* out_sect = (*out)->getSection(); in mergeSections()
325 LDSection* in_sect = (*in)->getSection(); in mergeSections()
411 LDSection* out_sect = (*out)->getSection(); in mergeSections()
417 LDSection* in_sect = (*in)->getSection(); in mergeSections()
426 LDSection* target = m_pModule->getSection((*out)->name()); in mergeSections()
462 ->getSection() in addSymbolToOutput()
469 ->getSection() in addSymbolToOutput()
675 LDSection* eh_frame_sect = m_pModule->getSection(".eh_frame"); in prelayout()
686 LDSection* debug_str_sect = m_pModule->getSection(".debug_str"); in prelayout()
735 (*symbol)->fragRef()->frag()->getParent()->getSection().addr(); in finalizeSymbolValue()
[all …]
/frameworks/compile/mclinker/lib/Script/
DUnaryOp.cpp76 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
80 llvm::cast<SectDescOperand>(m_pOperand)->outputDesc()->getSection(); in eval()
98 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
102 llvm::cast<SectDescOperand>(m_pOperand)->outputDesc()->getSection(); in eval()
169 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
173 llvm::cast<SectDescOperand>(m_pOperand)->outputDesc()->getSection(); in eval()
DAssignment.cpp138 in->getSection()->getSectionData()->front()); in activate()
159 in->getSection()->getSectionData()->front().getNextNode(), *this)); in activate()
/frameworks/compile/mclinker/include/mcld/LD/
DLDContext.h52 const LDSection* getSection(unsigned int pIdx) const;
53 LDSection* getSection(unsigned int pIdx);
55 const LDSection* getSection(const std::string& pName) const;
56 LDSection* getSection(const std::string& pName);
DDebugString.h52 const LDSection* getSection() const { return m_pSection; } in getSection() function
53 LDSection* getSection() { return m_pSection; } in getSection() function
DSectionData.h54 const LDSection& getSection() const { return *m_pSection; } in getSection() function
55 LDSection& getSection() { return *m_pSection; } in getSection() function
DRelocData.h63 const LDSection& getSection() const { return *m_pSection; } in getSection() function
64 LDSection& getSection() { return *m_pSection; } in getSection() function
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.cpp572 symbol->fragRef()->frag()->getParent()->getSection().addr(); in doRelax()
652 sd->getSection().setSize(sd->back().getOffset() + sd->back().size()); in doRelax()
730 pTo->getSection().setSize(offset); in SetSDataSection()
908 uint32_t pFromFlag = pFrom.getSection().align(); in MoveCommonData()
922 uint32_t flag = frag->getParent()->getSection().align(); in MoveCommonData()
929 if (pFrom.getSection().align() > 1) { in MoveCommonData()
931 unsigned int alignment = pFrom.getSection().align(); in MoveCommonData()
948 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
949 uint32_t size = pSD.getSection().size(); in readSection()
951 if (pSD.getSection().type() == llvm::ELF::SHT_NOBITS) { in readSection()
[all …]
/frameworks/compile/mclinker/lib/LD/
DLDContext.cpp28 LDSection* LDContext::getSection(unsigned int pIdx) { in getSection() function in mcld::LDContext
34 const LDSection* LDContext::getSection(unsigned int pIdx) const { in getSection() function in mcld::LDContext
40 LDSection* LDContext::getSection(const std::string& pName) { in getSection() function in mcld::LDContext
49 const LDSection* LDContext::getSection(const std::string& pName) const { in getSection() function in mcld::LDContext
DELFReaderIf.cpp54 if (pInput.context()->getSection(pShndx) == NULL || in getSymDesc()
55 LDFileFormat::Ignore == pInput.context()->getSection(pShndx)->kind()) in getSymDesc()
107 LDSection* sect_hdr = pInput.context()->getSection(pShndx); in getSymFragmentRef()
DIdenticalCodeFolding.cpp107 LDSection* sect = &(frag_ref->frag()->getParent()->getSection()); in foldIdenticalCode()
146 &sym->fragRef()->frag()->getParent()->getSection(); in findCandidates()
251 LDSection* def = &sym->fragRef()->frag()->getParent()->getSection(); in initConstantContent()
259 &sym->fragRef()->frag()->getParent()->getSection()) != in initConstantContent()
286 LDSection* def = &sym->fragRef()->frag()->getParent()->getSection(); in getContentWithVariables()
DGarbageCollection.cpp163 &sym->outSymbol()->fragRef()->frag()->getParent()->getSection(); in setUpReachedSections()
221 &sym->fragRef()->frag()->getParent()->getSection(); in getEntrySections()
235 pEntry.push_back(&entry_sym->fragRef()->frag()->getParent()->getSection()); in getEntrySections()
259 &sym->fragRef()->frag()->getParent()->getSection(); in getEntrySections()
280 const LDSection* sect = &sym->fragRef()->frag()->getParent()->getSection(); in getEntrySections()
DELFReader.cpp56 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readRegularSection()
57 uint32_t size = pSD.getSection().size(); in readRegularSection()
107 if (pInput.context()->getSection(st_shndx) == NULL) in readSymbols()
130 section = pInput.context()->getSection(st_shndx); in readSymbols()
421 info->section->setLink(pInput.context()->getSection(info->sh_info)); in readSectionHeaders()
423 info->section->setLink(pInput.context()->getSection(info->sh_link)); in readSectionHeaders()
478 const LDSection* dynamic_sect = pInput.context()->getSection(".dynamic"); in readDynamic()
556 uint64_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readRegularSection()
557 uint64_t size = pSD.getSection().size(); in readRegularSection()
607 if (pInput.context()->getSection(st_shndx) == NULL) in readSymbols()
[all …]
DEhFrame.cpp119 const LDSection& EhFrame::getSection() const { in getSection() function in mcld::EhFrame
124 LDSection& EhFrame::getSection() { in getSection() function in mcld::EhFrame
175 if ((*ri)->getLink() == &pFrame.getSection()) { in merge()
364 getSection().setSize(offset); in computeOffsetSize()
DELFObjectReader.cpp145 pInput.context()->getSection(value[index])->setKind( in readSections()
188 LDSection* link_sect = pInput.context()->getSection(link_index); in readSections()
279 LDSection* symtab_shdr = pInput.context()->getSection(".symtab"); in readSymbols()
/frameworks/compile/mclinker/include/mcld/Object/
DSectionMap.h44 const LDSection* getSection() const { return m_pSection; } in getSection() function
45 LDSection* getSection() { return m_pSection; } in getSection() function
91 const LDSection* getSection() const { return m_pSection; } in getSection() function
92 LDSection* getSection() { return m_pSection; } in getSection() function
/frameworks/compile/mclinker/unittests/
DSectionDataTest.cpp42 EXPECT_TRUE(s->getSection().name() == "test" && in TEST_F()
43 s->getSection().kind() == LDFileFormat::Null); in TEST_F()
/frameworks/compile/mclinker/lib/Core/
DModule.cpp38 LDSection* Module::getSection(const std::string& pName) { in getSection() function in mcld::Module
47 const LDSection* Module::getSection(const std::string& pName) const { in getSection() function in mcld::Module
DIRBuilder.cpp363 ObjectBuilder::AppendFragment(pFrag, pSD, pSD.getSection().align()); in AppendFragment()
364 pSD.getSection().setSize(pSD.getSection().size() + size); in AppendFragment()
376 pFrag, *pEhFrame.getSectionData(), pEhFrame.getSection().align()); in AppendEhFrame()
377 pEhFrame.getSection().setSize(pEhFrame.getSection().size() + size); in AppendEhFrame()
384 pEhFrame.getSection().setSize(pEhFrame.getSection().size() + pFDE.size()); in AppendEhFrame()
391 pEhFrame.getSection().setSize(pEhFrame.getSection().size() + pCIE.size()); in AppendEhFrame()
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64LongBranchStub.cpp107 uint64_t dest = symbol->fragRef()->frag()->getParent()->getSection().addr() + in applyFixup()
109 uint64_t src = pIsland.getParent()->getSection().addr() + in applyFixup()
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.cpp449 if ((pSD.getSection().flag() & llvm::ELF::SHF_MIPS_GPREL) || in readSection()
450 (pSD.getSection().type() == llvm::ELF::SHT_MIPS_ABIFLAGS)) { in readSection()
451 uint64_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
452 uint64_t size = pSD.getSection().size(); in readSection()
459 if (pSD.getSection().type() == llvm::ELF::SHT_MIPS_OPTIONS) { in readSection()
460 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
461 uint32_t size = pSD.getSection().size(); in readSection()
772 uint64_t addr = symbol->fragRef()->frag()->getParent()->getSection().addr(); in relaxRelocation()
880 sd->getSection().setSize(sd->back().getOffset() + sd->back().size()); in doRelax()
1214 uint64_t offset = pTo.getSection().size(); in moveSectionData()
[all …]
/frameworks/compile/mclinker/lib/Fragment/
DRelocation.cpp82 Address sect_addr = m_TargetAddress.frag()->getParent()->getSection().addr(); in place()
90 return fragRef->frag()->getParent()->getSection().addr() + in symValue()
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.cpp111 uint64_t addrA = textFragA->getParent()->getSection().addr() + in operator ()()
113 uint64_t addrB = textFragB->getParent()->getSection().addr() + in operator ()()
595 &sym->outSymbol()->fragRef()->frag()->getParent()->getSection(); in setUpReachedSectionsForGC()
621 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
622 uint32_t size = pSD.getSection().size(); in readSection()
742 uint64_t prevTextEnd = prevTextFrag->getParent()->getSection().addr() + in rewriteARMExIdxSection()
749 uint64_t currTextBegin = currTextFrag->getParent()->getSection().addr() + in rewriteARMExIdxSection()
849 symbol->fragRef()->frag()->getParent()->getSection().addr(); in doRelax()
951 sd->getSection().setSize(sd->back().getOffset() + sd->back().size()); in doRelax()
/frameworks/compile/mclinker/include/mcld/
DModule.h120 LDSection* getSection(const std::string& pName);
121 const LDSection* getSection(const std::string& pName) const;

12