/frameworks/compile/mclinker/lib/Target/ |
H A D | ELFDynamic.cpp | 328 void ELFDynamic::emit(const LDSection& pSection, MemoryRegion& pRegion) const { argument 329 if (pRegion.size() < pSection.size()) {
|
H A D | GNULDBackend.cpp | 2492 const LDSection& pSection) const { 2493 llvm::StringRef name(pSection.name()); 2851 void GNULDBackend::checkAndSetHasTextRel(const LDSection& pSection) { argument 2857 const uint32_t flag = pSection.flag(); 2866 void GNULDBackend::sortRelocation(LDSection& pSection) { argument 2870 assert(pSection.kind() == LDFileFormat::Relocation); 2875 if (&pSection == &getOutputFormat()->getRelDyn() || 2876 &pSection == &getOutputFormat()->getRelaDyn()) { 2877 if (pSection.hasRelocData()) 2878 pSection [all...] |
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsAbiFlags.cpp | 48 bool MipsAbiFlags::fillBySection(const Input& pInput, const LDSection& pSection, argument 50 assert(pSection.type() == llvm::ELF::SHT_MIPS_ABIFLAGS && 53 if (pSection.size() != size()) { 58 const SectionData* secData = pSection.getSectionData();
|
H A D | MipsPLT.cpp | 58 MipsPLT::MipsPLT(LDSection& pSection) : PLT(pSection) { argument
|
H A D | MipsGOT.cpp | 93 MipsGOT::MipsGOT(LDSection& pSection) argument 94 : GOT(pSection), 484 Mips32GOT::Mips32GOT(LDSection& pSection) : MipsGOT(pSection) { argument 519 Mips64GOT::Mips64GOT(LDSection& pSection) : MipsGOT(pSection) { argument
|
H A D | MipsRelocator.cpp | 186 LDSection& pSection, 198 assert(pSection.getLink() != NULL); 199 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) 208 scanLocalReloc(info, pBuilder, pSection); 210 scanGlobalReloc(info, pBuilder, pSection); 219 issueUndefRef(pReloc, pSection, pInput); 246 const LDSection& pSection) { 262 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 300 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 309 getTarget().checkAndSetHasTextRel(*pSection 183 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument 244 scanLocalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 345 scanGlobalReloc(MipsRelocationInfo& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument [all...] |
H A D | MipsLDBackend.cpp | 260 uint64_t MipsGNULDBackend::emitSectionData(const LDSection& pSection, argument 266 if (file_format->hasGOT() && (&pSection == &(file_format->getGOT()))) { 270 if (file_format->hasPLT() && (&pSection == &(file_format->getPLT()))) { 274 if (file_format->hasGOTPLT() && (&pSection == &(file_format->getGOTPLT()))) { 278 if (&pSection == m_pAbiFlags && m_pAbiInfo.hasValue()) 281 if (&pSection == m_psdata && m_psdata->hasSectionData()) { 282 const SectionData* sect_data = pSection.getSectionData(); 332 fatal(diag::unrecognized_output_sectoin) << pSection.name() 1192 LDSection& pSection) { 1193 if (pSection 1191 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument [all...] |
/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86PLT.cpp | 51 X86PLT::X86PLT(LDSection& pSection, const LinkerConfig& pConfig, int got_size) argument 52 : PLT(pSection), m_Config(pConfig) { 135 X86_32PLT::X86_32PLT(LDSection& pSection, argument 138 : X86PLT(pSection, pConfig, 32), m_GOTPLT(pGOTPLT) { 218 X86_64PLT::X86_64PLT(LDSection& pSection, argument 221 : X86PLT(pSection, pConfig, 64), m_GOTPLT(pGOTPLT) {
|
H A D | X86LDBackend.cpp | 158 uint64_t X86GNULDBackend::emitSectionData(const LDSection& pSection, argument 169 if (FileFormat->hasPLT() && (&pSection == &(FileFormat->getPLT()))) { 190 } else if (FileFormat->hasGOT() && (&pSection == &(FileFormat->getGOT()))) { 193 (&pSection == &(FileFormat->getGOTPLT()))) { 196 fatal(diag::unrecognized_output_sectoin) << pSection.name()
|
H A D | X86Relocator.cpp | 163 LDSection& pSection, 172 assert(pSection.getLink() != NULL); 173 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) 179 scanLocalReloc(pReloc, pLinker, pModule, pSection); 181 scanGlobalReloc(pReloc, pLinker, pModule, pSection); 186 issueUndefRef(pReloc, pSection, pInput); 314 LDSection& pSection) { 326 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 350 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 449 getTarget().checkAndSetHasTextRel(*pSection 160 scanRelocation(Relocation& pReloc, IRBuilder& pLinker, Module& pModule, LDSection& pSection, Input& pInput) argument 311 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 514 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 780 convertTLSIEtoLE(Relocation& pReloc, LDSection& pSection) argument 1289 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 1361 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument [all...] |
/frameworks/compile/mclinker/include/mcld/ |
H A D | Module.h | 138 const LDSymbol* getSectionSymbol(const LDSection& pSection) const { 139 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 | 94 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 | 62 static bool mayProcessGC(const LDSection& pSection) { argument 63 if (pSection.kind() == LDFileFormat::TEXT || 64 pSection.kind() == LDFileFormat::DATA || 65 pSection.kind() == LDFileFormat::BSS || 66 pSection.kind() == LDFileFormat::GCCExceptTable) 82 const LDSection& pSection) { 83 return m_ReachedSections[&pSection]; 88 const LDSection& pSection) { 89 ReachedSectionsTy::iterator it = m_ReachedSections.find(&pSection); 81 getReachedList( const LDSection& pSection) argument 87 findReachedList( const LDSection& pSection) argument
|
H A D | EhFrame.cpp | 95 EhFrame::EhFrame(LDSection& pSection) argument 96 : m_pSection(&pSection), m_pSectionData(NULL) { 97 m_pSectionData = SectionData::Create(pSection); 103 EhFrame* EhFrame::Create(LDSection& pSection) { argument 105 new (result) EhFrame(pSection); 109 void EhFrame::Destroy(EhFrame*& pSection) { argument 110 pSection->~EhFrame(); 111 g_EhFrameFactory->deallocate(pSection); 112 pSection = NULL;
|
H A D | ELFObjectWriter.cpp | 381 void ELFObjectWriter::emitSectionData(const LDSection& pSection, argument 384 switch (pSection.kind()) { 386 assert(pSection.hasRelocData()); 389 assert(pSection.hasEhFrame()); 390 sd = pSection.getEhFrame()->getSectionData(); 393 assert(pSection.hasSectionData()); 394 sd = pSection.getSectionData(); 449 const LDSection& pSection, 451 const RelocData* sect_data = pSection.getRelocData(); 454 if (pSection 448 emitRelocation(const LinkerConfig& pConfig, const LDSection& pSection, MemoryRegion& pRegion) const argument 592 getSectLink(const LDSection& pSection, const LinkerConfig& pConfig) const argument [all...] |
H A D | ELFReader.cpp | 205 LDSection& pSection, 227 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset, r_addend); 234 LDSection& pSection, 254 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset); 700 LDSection& pSection, 722 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset, r_addend); 729 LDSection& pSection, 748 IRBuilder::AddRelocation(pSection, r_type, *symbol, r_offset); 204 readRela(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument 233 readRel(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument 699 readRela(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument 728 readRel(Input& pInput, LDSection& pSection, llvm::StringRef pRegion) const argument
|
/frameworks/compile/mclinker/lib/Object/ |
H A D | SectionMap.cpp | 289 LDSection* pSection) { 290 Output* output = new Output(pSection->name()); 291 output->append(new Input(pSection->name(), InputSectDesc::NoKeep)); 292 output->setSection(pSection); 288 insert(iterator pPosition, LDSection* pSection) argument
|
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonPLT.cpp | 35 HexagonPLT::HexagonPLT(LDSection& pSection, argument 38 : PLT(pSection), m_GOTPLT(pGOTPLT) { 47 pSection.setAlign(16);
|
H A D | HexagonRelocator.cpp | 198 LDSection& pSection, 211 assert(pSection.getLink() != NULL); 212 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) 216 scanLocalReloc(pReloc, pLinker, pModule, pSection); 218 scanGlobalReloc(pReloc, pLinker, pModule, pSection); 223 issueUndefRef(pReloc, pSection, pInput); 238 LDSection& pSection) { 277 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 289 LDSection& pSection) { 338 ld_backend.checkAndSetHasTextRel(*pSection 195 scanRelocation(Relocation& pReloc, IRBuilder& pLinker, Module& pModule, LDSection& pSection, Input& pInput) argument 235 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument 286 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument [all...] |
H A D | HexagonLDBackend.cpp | 136 uint64_t HexagonLDBackend::emitSectionData(const LDSection& pSection, argument 147 if (FileFormat->hasPLT() && (&pSection == &(FileFormat->getPLT()))) { 169 } else if (FileFormat->hasGOT() && (&pSection == &(FileFormat->getGOT()))) { 173 (&pSection == &(FileFormat->getGOTPLT()))) { 179 const SectionData* sect_data = pSection.getSectionData();
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64LDBackend.cpp | 268 uint64_t AArch64GNULDBackend::emitSectionData(const LDSection& pSection, argument 274 if (file_format->hasPLT() && (&pSection == &(file_format->getPLT()))) { 279 if (file_format->hasGOT() && (&pSection == &(file_format->getGOT()))) { 284 if (file_format->hasGOTPLT() && (&pSection == &(file_format->getGOTPLT()))) { 532 LDSection& pSection) { 530 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument
|
H A D | AArch64Relocator.cpp | 152 const LDSection& pSection) { 163 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 189 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 217 const LDSection& pSection) { 248 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 377 LDSection& pSection, 383 assert(pSection.getLink() != NULL); 384 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) 393 scanLocalReloc(pReloc, pSection); 396 scanGlobalReloc(pReloc, pBuilder, pSection); 151 scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument 215 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 374 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument [all...] |
/frameworks/compile/mclinker/lib/Core/ |
H A D | IRBuilder.cpp | 283 /// CreateSectionData - To create a section data for given pSection. 284 SectionData* IRBuilder::CreateSectionData(LDSection& pSection) { argument 285 assert(!pSection.hasSectionData() && "pSection already has section data."); 287 SectionData* sect_data = SectionData::Create(pSection); 288 pSection.setSectionData(sect_data); 292 /// CreateRelocData - To create a relocation data for given pSection. 293 RelocData* IRBuilder::CreateRelocData(LDSection& pSection) { argument 294 assert(!pSection.hasRelocData() && "pSection alread 302 CreateEhFrame(LDSection& pSection) argument 311 CreateDebugString(LDSection& pSection) argument 320 CreateBSS(LDSection& pSection) argument 397 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 589 AddRelocation(LDSection& pSection, Relocation::Type pType, LDSymbol& pSym, uint32_t pOffset, Relocation::Address pAddend) argument [all...] |
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMLDBackend.cpp | 389 uint64_t ARMGNULDBackend::emitSectionData(const LDSection& pSection, argument 395 if (file_format->hasPLT() && (&pSection == &(file_format->getPLT()))) { 400 if (file_format->hasGOT() && (&pSection == &(file_format->getGOT()))) { 405 if (&pSection == m_pAttributes) { 411 const SectionData* sect_data = pSection.getSectionData(); 486 LDSection& pSection) { 487 switch (pSection.type()) { 489 return attribute().merge(pInput, pSection); 493 assert(pSection.getLink() != NULL); 494 if ((pSection 484 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument [all...] |
H A D | ARMRelocator.cpp | 430 const LDSection& pSection) { 449 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 522 const LDSection& pSection) { 571 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 648 getTarget().checkAndSetHasTextRel(*pSection.getLink()); 731 LDSection& pSection, 738 assert(pSection.getLink() != NULL); 739 if ((pSection.getLink()->flag() & llvm::ELF::SHF_ALLOC) == 0) 748 scanLocalReloc(pReloc, pSection); 752 scanGlobalReloc(pReloc, pBuilder, pSection); 429 scanLocalReloc(Relocation& pReloc, const LDSection& pSection) argument 520 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, const LDSection& pSection) argument 728 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument [all...] |