/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/LD/ |
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 | 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 | 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
|
/frameworks/compile/mclinker/lib/Object/ |
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 | 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 | 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/Mips/ |
H A D | MipsGOT.cpp | 90 MipsGOT::MipsGOT(LDSection& pSection) argument 91 : GOT(pSection), 402 Mips32GOT::Mips32GOT(LDSection& pSection) 403 : MipsGOT(pSection) 443 Mips64GOT::Mips64GOT(LDSection& pSection) 444 : MipsGOT(pSection)
|
H A D | MipsLDBackend.cpp | 262 uint64_t MipsGNULDBackend::emitSectionData(const LDSection& pSection, argument 269 if (file_format->hasGOT() && (&pSection == &(file_format->getGOT()))) { 273 if (file_format->hasPLT() && (&pSection == &(file_format->getPLT()))) { 277 if (file_format->hasGOTPLT() && (&pSection == &(file_format->getGOTPLT()))) { 282 << pSection.name()
|
H A D | MipsRelocator.cpp | 229 LDSection& pSection, 241 assert(NULL != pSection.getLink()); 242 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) 251 scanLocalReloc(info, pBuilder, pSection); 253 scanGlobalReloc(info, pBuilder, pSection); 262 issueUndefRef(pReloc, pSection, pInput); 293 const LDSection& pSection) 310 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 348 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 378 const LDSection& pSection) 226 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument 291 scanLocalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 376 scanGlobalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument [all...] |
/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/Target/X86/ |
H A D | X86LDBackend.cpp | 168 uint64_t X86GNULDBackend::emitSectionData(const LDSection& pSection, argument 180 if (FileFormat->hasPLT() && (&pSection == &(FileFormat->getPLT()))) { 202 else if (FileFormat->hasGOT() && (&pSection == &(FileFormat->getGOT()))) { 206 (&pSection == &(FileFormat->getGOTPLT()))) { 211 << pSection.name()
|
H A D | X86Relocator.cpp | 183 LDSection& pSection, 193 assert(NULL != pSection.getLink()); 194 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) 200 scanLocalReloc(pReloc, pLinker, pModule, pSection); 202 scanGlobalReloc(pReloc, pLinker, pModule, pSection); 207 issueUndefRef(pReloc, pSection, pInput); 346 LDSection& pSection) 360 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 381 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 485 getTarget().checkAndSetHasTextRel(*pSection 180 scanRelocation(Relocation& pReloc, IRBuilder& pLinker, Module& pModule, LDSection& pSection, Input& pInput) argument 343 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 551 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 816 convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection) argument 1351 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 1426 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument [all...] |
/frameworks/compile/mclinker/lib/Target/ARM/ |
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 | 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...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonRelocator.cpp | 194 Module &pModule, LDSection &pSection, Input &pInput) { 206 assert(NULL != pSection.getLink()); 207 if (0 == (pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC)) 211 scanLocalReloc(pReloc, pLinker, pModule, pSection); 213 scanGlobalReloc(pReloc, pLinker, pModule, pSection); 218 issueUndefRef(pReloc, pSection, pInput); 231 Module &pModule, LDSection &pSection) { 270 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 280 Module &pModule, LDSection &pSection) { 329 ld_backend.checkAndSetHasTextRel(*pSection 193 scanRelocation(Relocation &pReloc, IRBuilder &pLinker, Module &pModule, LDSection &pSection, Input &pInput) argument 230 scanLocalReloc(Relocation &pReloc, IRBuilder &pBuilder, Module &pModule, LDSection &pSection) argument 279 scanGlobalReloc(Relocation &pReloc, IRBuilder &pBuilder, Module &pModule, LDSection &pSection) argument 458 partialScanRelocation(Relocation &pReloc, Module &pModule, const LDSection &pSection) argument [all...] |
H A D | HexagonLDBackend.cpp | 141 uint64_t HexagonLDBackend::emitSectionData(const LDSection& pSection, argument 153 if (FileFormat->hasPLT() && (&pSection == &(FileFormat->getPLT()))) { 177 else if (FileFormat->hasGOT() && (&pSection == &(FileFormat->getGOT()))) { 182 (&pSection == &(FileFormat->getGOTPLT()))) { 188 const SectionData* sect_data = pSection.getSectionData();
|
/frameworks/compile/mclinker/lib/Target/ |
H A D | GNULDBackend.cpp | 2588 bool GNULDBackend::mayHaveUnsafeFunctionPointerAccess(const LDSection& pSection) 2591 llvm::StringRef name(pSection.name()); 2993 void GNULDBackend::checkAndSetHasTextRel(const LDSection& pSection) argument 3000 const uint32_t flag = pSection.flag(); 3009 void GNULDBackend::sortRelocation(LDSection& pSection) argument 3014 assert(pSection.kind() == LDFileFormat::Relocation); 3019 if (&pSection == &getOutputFormat()->getRelDyn() || 3020 &pSection == &getOutputFormat()->getRelaDyn()) { 3021 if (pSection.hasRelocData()) 3022 pSection [all...] |