Home
last modified time | relevance | path

Searched refs:getSection (Results 1 – 25 of 45) 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()
DOperand.cpp149 mcld::outs() << m_pOutputDesc->getSection()->name(); in dump()
188 m_pFragment->getParent()->getSection().addr(); in value()
/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/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()
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()
DIdenticalCodeFolding.cpp107 LDSection* sect = &(frag_ref->frag()->getParent()->getSection()); in foldIdenticalCode()
146 &sym->fragRef()->frag()->getParent()->getSection(); in findCandidates()
252 LDSection* def = &sym->fragRef()->frag()->getParent()->getSection(); in initConstantContent()
260 &sym->fragRef()->frag()->getParent()->getSection()) != in initConstantContent()
287 LDSection* def = &sym->fragRef()->frag()->getParent()->getSection(); in getContentWithVariables()
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.cpp144 pInput.context()->getSection(value[index])->setKind( in readSections()
187 LDSection* link_sect = pInput.context()->getSection(link_index); in readSections()
278 LDSection* symtab_shdr = pInput.context()->getSection(".symtab"); in readSymbols()
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.cpp571 symbol->fragRef()->frag()->getParent()->getSection().addr(); in doRelax()
699 pTo->getSection().setSize(offset); in SetSDataSection()
877 uint32_t pFromFlag = pFrom.getSection().align(); in MoveCommonData()
891 uint32_t flag = frag->getParent()->getSection().align(); in MoveCommonData()
898 if (pFrom.getSection().align() > 1) { in MoveCommonData()
900 unsigned int alignment = pFrom.getSection().align(); in MoveCommonData()
917 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
918 uint32_t size = pSD.getSection().size(); in readSection()
920 if (pSD.getSection().type() == llvm::ELF::SHT_NOBITS) { in readSection()
944 uint32_t pFromFlag = pFrom.getSection().align(); in MoveSectionDataAndSort()
[all …]
/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/
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()
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
/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/
DARMException.cpp189 uint64_t addrA = textFragA->getParent()->getSection().addr() + in operator ()()
191 uint64_t addrB = textFragB->getParent()->getSection().addr() + in operator ()()
261 uint64_t prevTextEnd = prevTextFrag->getParent()->getSection().addr() + in rewriteARMExIdxSection()
267 uint64_t currTextBegin = currTextFrag->getParent()->getSection().addr() + in rewriteARMExIdxSection()
/frameworks/compile/mclinker/include/mcld/
DModule.h120 LDSection* getSection(const std::string& pName);
121 const LDSection* getSection(const std::string& pName) const;
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.cpp339 llvm::StringRef name(pSD.getSection().name()); in readSection()
342 uint64_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
343 uint64_t size = pSD.getSection().size(); in readSection()
350 if (pSD.getSection().type() == llvm::ELF::SHT_MIPS_OPTIONS) { in readSection()
351 uint32_t offset = pInput.fileOffset() + pSD.getSection().offset(); in readSection()
352 uint32_t size = pSD.getSection().size(); in readSection()
632 uint64_t addr = symbol->fragRef()->frag()->getParent()->getSection().addr(); in relaxRelocation()

12