/frameworks/compile/mclinker/include/mcld/ |
H A D | Module.h | 139 const LDSymbol* getSectionSymbol(const LDSection& pSection) const 140 { return m_SectSymbolSet.get(pSection); } 142 LDSymbol* getSectionSymbol(const LDSection& pSection) argument 143 { return m_SectSymbolSet.get(pSection); }
|
/frameworks/compile/mclinker/include/mcld/Object/ |
H A D | SectionMap.h | 93 void setSection(LDSection* pSection) { m_pSection = pSection; } argument 192 iterator insert(iterator pPosition, LDSection* pSection);
|
/frameworks/compile/mclinker/lib/Core/ |
H A D | IRBuilder.cpp | 292 /// CreateSectionData - To create a section data for given pSection. 293 SectionData* IRBuilder::CreateSectionData(LDSection& pSection) argument 295 assert(!pSection.hasSectionData() && "pSection already has section data."); 297 SectionData* sect_data = SectionData::Create(pSection); 298 pSection.setSectionData(sect_data); 302 /// CreateRelocData - To create a relocation data for given pSection. 303 RelocData* IRBuilder::CreateRelocData(LDSection &pSection) argument 305 assert(!pSection.hasRelocData() && "pSection alread 313 CreateEhFrame(LDSection& pSection) argument 323 CreateBSS(LDSection& pSection) argument 407 AddSymbol(Input& pInput, const std::string& pName, ResolveInfo::Type pType, ResolveInfo::Desc pDesc, ResolveInfo::Binding pBind, ResolveInfo::SizeType pSize, LDSymbol::ValueType pValue, LDSection* pSection, ResolveInfo::Visibility pVis) argument 597 AddRelocation(LDSection& pSection, Relocation::Type pType, LDSymbol& pSym, uint32_t pOffset, Relocation::Address pAddend) argument [all...] |
/frameworks/compile/mclinker/lib/Fragment/ |
H A D | FragmentRef.cpp | 79 FragmentRef* FragmentRef::Create(LDSection& pSection, uint64_t pOffset) argument 82 switch (pSection.kind()) { 87 if (pSection.hasEhFrame()) 88 data = pSection.getEhFrame()->getSectionData(); 91 data = pSection.getSectionData();
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | ELFObjectWriter.cpp | 391 ELFObjectWriter::emitSectionData(const LDSection& pSection, argument 395 switch (pSection.kind()) { 397 assert(pSection.hasRelocData()); 400 assert(pSection.hasEhFrame()); 401 sd = pSection.getEhFrame()->getSectionData(); 404 assert(pSection.hasSectionData()); 405 sd = pSection.getSectionData(); 457 const LDSection& pSection, 460 const RelocData* sect_data = pSection.getRelocData(); 463 if (pSection 456 emitRelocation(const LinkerConfig& pConfig, const LDSection& pSection, MemoryRegion& pRegion) const argument 606 getSectLink(const LDSection& pSection, const LinkerConfig& pConfig) const argument [all...] |
H A D | ELFReader.cpp | 214 LDSection& pSection, 235 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset, r_addend); 242 LDSection& pSection, 263 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset); 734 LDSection& pSection, 757 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset, r_addend); 764 LDSection& pSection, 784 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset); 213 readRela(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument 241 readRel(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument 733 readRela(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument 763 readRel(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument
|
H A D | ELFSegment.cpp | 76 LDSection* pSection) 78 return m_SectionList.insert(pPos, pSection); 81 void ELFSegment::append(LDSection* pSection) argument 83 assert(NULL != pSection); 84 if (pSection->align() > m_MaxSectionAlign) 85 m_MaxSectionAlign = pSection->align(); 86 m_SectionList.push_back(pSection); 75 insert(ELFSegment::iterator pPos, LDSection* pSection) argument
|
H A D | ELFSegmentFactory.cpp | 49 ELFSegmentFactory::find(uint32_t pType, const LDSection* pSection) argument 56 if (*sect == pSection) 65 ELFSegmentFactory::find(uint32_t pType, const LDSection* pSection) const 72 if (*sect == pSection)
|
H A D | EhFrame.cpp | 99 EhFrame::EhFrame(LDSection& pSection) argument 100 : m_pSection(&pSection), 102 m_pSectionData = SectionData::Create(pSection); 109 EhFrame* EhFrame::Create(LDSection& pSection) argument 112 new (result) EhFrame(pSection); 116 void EhFrame::Destroy(EhFrame*& pSection) argument 118 pSection->~EhFrame(); 119 g_EhFrameFactory->deallocate(pSection); 120 pSection = NULL;
|
H A D | GarbageCollection.cpp | 65 static bool mayProcessGC(const LDSection& pSection) argument 67 if (pSection.kind() == LDFileFormat::TEXT || 68 pSection.kind() == LDFileFormat::DATA || 69 pSection.kind() == LDFileFormat::BSS || 70 pSection.kind() == LDFileFormat::GCCExceptTable) 87 const LDSection& pSection) 89 return m_ReachedSections[&pSection]; 94 const LDSection& pSection) 96 ReachedSectionsTy::iterator it = m_ReachedSections.find(&pSection); 86 getReachedList( const LDSection& pSection) argument 93 findReachedList( const LDSection& pSection) argument
|
H A D | LDContext.cpp | 19 LDContext& LDContext::appendSection(LDSection& pSection) argument 21 if (LDFileFormat::Relocation == pSection.kind()) 22 m_RelocSections.push_back(&pSection); 23 pSection.setIndex(m_SectionTable.size()); 24 m_SectionTable.push_back(&pSection);
|
H A D | LDSection.cpp | 80 void LDSection::Destroy(LDSection*& pSection) argument 82 g_SectFactory->destroy(pSection); 83 g_SectFactory->deallocate(pSection); 84 pSection = NULL;
|
H A D | RelocData.cpp | 27 RelocData::RelocData(LDSection &pSection) argument 28 : m_pSection(&pSection) { 31 RelocData* RelocData::Create(LDSection& pSection) argument 34 new (result) RelocData(pSection); 38 void RelocData::Destroy(RelocData*& pSection) argument 40 pSection->~RelocData(); 41 g_RelocDataFactory->deallocate(pSection); 42 pSection = NULL;
|
H A D | Relocator.cpp | 32 const LDSection& pSection) 55 LDSection& pSection, 59 std::string sect_name(pSection.name()); 30 partialScanRelocation(Relocation& pReloc, Module& pModule, const LDSection& pSection) argument 54 issueUndefRef(Relocation& pReloc, LDSection& pSection, Input& pInput) argument
|
H A D | SectionData.cpp | 29 SectionData::SectionData(LDSection &pSection) argument 30 : m_pSection(&pSection) { 33 SectionData* SectionData::Create(LDSection& pSection) argument 36 new (result) SectionData(pSection); 40 void SectionData::Destroy(SectionData*& pSection) argument 42 pSection->~SectionData(); 43 g_SectDataFactory->deallocate(pSection); 44 pSection = NULL;
|
/frameworks/compile/mclinker/lib/Object/ |
H A D | ObjectBuilder.cpp | 161 void ObjectBuilder::UpdateSectionAlign(LDSection& pSection, argument 164 if (pSection.align() < pAlignConstraint) 165 pSection.setAlign(pAlignConstraint);
|
H A D | SectionMap.cpp | 300 SectionMap::insert(iterator pPosition, LDSection* pSection) argument 302 Output* output = new Output(pSection->name()); 303 output->append(new Input(pSection->name(), InputSectDesc::NoKeep)); 304 output->setSection(pSection);
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64GOT.cpp | 25 AArch64GOT::AArch64GOT(LDSection& pSection) argument 26 : GOT(pSection), m_pGOTPLTFront(NULL), m_pGOTFront(NULL)
|
H A D | AArch64LDBackend.cpp | 282 uint64_t AArch64GNULDBackend::emitSectionData(const LDSection& pSection, argument 289 if (file_format->hasPLT() && (&pSection == &(file_format->getPLT()))) { 294 if (file_format->hasGOT() && (&pSection == &(file_format->getGOT()))) { 299 if (file_format->hasGOTPLT() && (&pSection == &(file_format->getGOTPLT()))) { 355 LDSection& pSection) 353 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument
|
H A D | AArch64PLT.cpp | 31 AArch64PLT::AArch64PLT(LDSection& pSection, AArch64GOT &pGOTPLT) argument 32 : PLT(pSection), m_GOT(pGOTPLT) {
|
H A D | AArch64Relocator.cpp | 156 AArch64Relocator::scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument 168 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 192 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 220 const LDSection& pSection) 252 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 380 LDSection& pSection, 387 assert(NULL != pSection.getLink()); 388 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) 397 scanLocalReloc(pReloc, pSection); 400 scanGlobalReloc(pReloc, pBuilder, pSection); 218 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 377 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument [all...] |
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMGOT.cpp | 25 ARMGOT::ARMGOT(LDSection& pSection) argument 26 : GOT(pSection), m_pGOTPLTFront(NULL), m_pGOTFront(NULL)
|
H A D | ARMLDBackend.cpp | 333 uint64_t ARMGNULDBackend::emitSectionData(const LDSection& pSection, argument 340 if (file_format->hasPLT() && (&pSection == &(file_format->getPLT()))) { 345 if (file_format->hasGOT() && (&pSection == &(file_format->getGOT()))) { 350 if (&pSection == m_pAttributes) { 356 const SectionData* sect_data = pSection.getSectionData(); 415 LDSection& pSection) 417 switch (pSection.type()) { 419 return attribute().merge(pInput, pSection); 422 assert(NULL != pSection.getLink()); 423 if (LDFileFormat::Ignore == pSection 413 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument [all...] |
H A D | ARMPLT.cpp | 30 ARMPLT::ARMPLT(LDSection& pSection, ARMGOT &pGOTPLT) argument 31 : PLT(pSection), m_GOT(pGOTPLT) {
|
H A D | ARMRelocator.cpp | 487 ARMRelocator::scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument 509 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 584 const LDSection& pSection) 636 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 712 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 798 LDSection& pSection, 806 assert(NULL != pSection.getLink()); 807 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) 816 scanLocalReloc(pReloc, pSection); 820 scanGlobalReloc(pReloc, pBuilder, pSection); 582 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 795 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument [all...] |