/frameworks/compile/mclinker/lib/Core/ |
D | Module.cpp | 39 iterator sect, sectEnd = end(); in getSection() local 40 for (sect = begin(); sect != sectEnd; ++sect) { in getSection() 41 if ((*sect)->name() == pName) in getSection() 42 return *sect; in getSection() 48 const_iterator sect, sectEnd = end(); in getSection() local 49 for (sect = begin(); sect != sectEnd; ++sect) { in getSection() 50 if ((*sect)->name() == pName) in getSection() 51 return *sect; in getSection()
|
/frameworks/compile/mclinker/lib/Script/ |
D | UnaryOp.cpp | 73 const LDSection* sect = NULL; in eval() local 76 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval() 79 sect = in eval() 86 assert(sect != NULL); in eval() 87 res->setValue(sect->addr()); in eval() 95 const LDSection* sect = NULL; in eval() local 98 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval() 101 sect = in eval() 108 assert(sect != NULL); in eval() 109 res->setValue(sect->align()); in eval() [all …]
|
D | BinaryOp.cpp | 228 SectOperand* sect = llvm::cast<SectOperand>(m_pOperand[0]); in eval() local 231 if (sect->name().compare("text-segment") == 0) in eval() 233 else if (sect->name().compare("data-segment") == 0) in eval() 235 else if (sect->name().compare("bss-segment") == 0) in eval() 238 addr = addressMap.find(sect->name()); in eval()
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFSegmentFactory.cpp | 52 ELFSegment::iterator sect, sectEnd = (*segment)->end(); in find() local 53 for (sect = (*segment)->begin(); sect != sectEnd; ++sect) { in find() 54 if (*sect == pSection) in find() 68 ELFSegment::const_iterator sect, sectEnd = (*segment)->end(); in find() local 69 for (sect = (*segment)->begin(); sect != sectEnd; ++sect) { in find() 70 if (*sect == pSection) in find()
|
D | IdenticalCodeFolding.cpp | 81 LDSection* sect = (*kept).first; in foldIdenticalCode() local 85 sect->setKind(LDFileFormat::Folded); in foldIdenticalCode() 92 debug(diag::debug_icf_folded_section) << sect->name() << obj->name() in foldIdenticalCode() 107 LDSection* sect = &(frag_ref->frag()->getParent()->getSection()); in foldIdenticalCode() local 108 if (sect->kind() == LDFileFormat::Folded) { in foldIdenticalCode() 109 size_t kept_index = m_KeptSections[sect].second; in foldIdenticalCode() 125 LDContext::sect_iterator sect, sectEnd = (*obj)->context()->sectEnd(); in findCandidates() local 126 for (sect = (*obj)->context()->sectBegin(); sect != sectEnd; ++sect) { in findCandidates() 127 switch ((*sect)->kind()) { in findCandidates() 129 candidate_map.insert(std::make_pair(*sect, nullptr)); in findCandidates() [all …]
|
D | GarbageCollection.cpp | 188 LDContext::sect_iterator sect, sectEnd = (*obj)->context()->sectEnd(); in getEntrySections() local 189 for (sect = (*obj)->context()->sectBegin(); sect != sectEnd; ++sect) { in getEntrySections() 190 LDSection* section = *sect; in getEntrySections() 220 const LDSection* sect = in getEntrySections() local 222 if (!mayProcessGC(*sect)) in getEntrySections() 224 pEntry.push_back(sect); in getEntrySections() 258 const LDSection* sect = in getEntrySections() local 260 if (!mayProcessGC(*sect)) in getEntrySections() 263 pEntry.push_back(sect); in getEntrySections() 280 const LDSection* sect = &sym->fragRef()->frag()->getParent()->getSection(); in getEntrySections() local [all …]
|
D | BranchIslandFactory.cpp | 41 for (Module::iterator sect = pModule.begin(), sectEnd = pModule.end(); in group() local 42 sect != sectEnd; ++sect) { in group() 43 if (((*sect)->kind() == LDFileFormat::TEXT) && (*sect)->hasSectionData()) { in group() 44 SectionData& sd = *((*sect)->getSectionData()); in group()
|
D | ELFObjectWriter.cpp | 150 ELFSegment::iterator sect, sectEnd = (*seg)->end(); in writeObject() local 151 for (sect = (*seg)->begin(); sect != sectEnd; ++sect) in writeObject() 152 writeSection(pModule, pOutput, *sect); in writeObject() 157 Module::iterator sect, sectEnd = pModule.end(); in writeObject() local 158 for (sect = pModule.begin(); sect != sectEnd; ++sect) in writeObject() 159 writeSection(pModule, pOutput, *sect); in writeObject()
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMException.cpp | 69 LDSection* sect = *it; in create() local 70 if (sect->type() == llvm::ELF::SHT_ARM_EXIDX) { in create() 71 ARMExSectionTuple* exTuple = exMap->getOrCreateByExSection(*sect); in create() 72 exTuple->setExIdxSection(sect); in create() 73 exTuple->setTextSection(sect->getLink()); in create() 74 if (sect->getLink() == NULL) { in create() 75 fatal(diag::eh_missing_text_section) << sect->name() << pInput.name(); in create()
|
/frameworks/compile/mclinker/lib/Object/ |
D | ObjectLinker.cpp | 341 LDContext::sect_iterator sect, sectEnd = (*obj)->context()->sectEnd(); in mergeSections() local 342 for (sect = (*obj)->context()->sectBegin(); sect != sectEnd; ++sect) { in mergeSections() 343 switch ((*sect)->kind()) { in mergeSections() 354 if (!(*sect)->hasRelocData()) in mergeSections() 357 if ((*sect)->getLink()->kind() == LDFileFormat::Ignore || in mergeSections() 358 (*sect)->getLink()->kind() == LDFileFormat::Folded) in mergeSections() 359 (*sect)->setKind(LDFileFormat::Ignore); in mergeSections() 362 if (!m_LDBackend.mergeSection(*m_pModule, **obj, **sect)) { in mergeSections() 363 error(diag::err_cannot_merge_section) << (*sect)->name() in mergeSections() 369 if (!(*sect)->hasEhFrame()) in mergeSections() [all …]
|
D | SectionMap.cpp | 312 StringList::const_iterator sect, sectEnd = pInput.spec().sections().end(); in matched() local 313 for (sect = pInput.spec().sections().begin(); sect != sectEnd; ++sect) { in matched() 314 if (matched(llvm::cast<WildcardPattern>(**sect), pInputSection)) { in matched()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | IdenticalCodeFolding.h | 39 FoldingCandidate() : sect(NULL), reloc_sect(NULL), obj(NULL) {} in FoldingCandidate() 41 : sect(pCode), reloc_sect(pReloc), obj(pInput) {} in FoldingCandidate() 50 LDSection* sect; variable
|
/frameworks/compile/mclinker/lib/Target/ |
D | GNULDBackend.cpp | 702 Module::const_iterator sect, sectEnd = pModule.end(); in sizeShstrtab() local 703 for (sect = pModule.begin(); sect != sectEnd; ++sect) { in sizeShstrtab() 704 shstrtab += (*sect)->name().size() + 1; in sizeShstrtab() 1760 LDSection* sect = (*out)->getSection(); in createProgramHdrs() local 1762 if (0 == (sect->flag() & llvm::ELF::SHF_ALLOC) && in createProgramHdrs() 1763 LDFileFormat::Null != sect->kind()) in createProgramHdrs() 1771 cur_flag = getSegmentFlag(sect->flag()); in createProgramHdrs() 1773 if (LDFileFormat::Null == sect->kind()) { in createProgramHdrs() 1780 } else if (sect->kind() == LDFileFormat::BSS && load_seg->isDataSegment() && in createProgramHdrs() 1784 } else if ((sect != &(file_format->getText())) && in createProgramHdrs() [all …]
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64LDBackend.cpp | 317 for (Module::iterator sect = pModule.begin(), sectEnd = pModule.end(); in scanErrata() local 318 sect != sectEnd; ++sect) { in scanErrata() 319 if (((*sect)->kind() == LDFileFormat::TEXT) && (*sect)->hasSectionData()) { in scanErrata() 320 SectionData* sd = (*sect)->getSectionData(); in scanErrata()
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsLDBackend.cpp | 1154 LDSection* sect = *it; in saveTPOffset() local 1155 if (sect->flag() & llvm::ELF::SHF_TLS) { in saveTPOffset() 1156 m_TpOffsetMap[&pInput] = sect->addr() + 0x7000; in saveTPOffset() 1157 m_DtpOffsetMap[&pInput] = sect->addr() + 0x8000; in saveTPOffset()
|