Home | History | Annotate | Download | only in LD

Lines Matching defs:section

68 /// readObject - read section header and create LDSections.
85 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd();
86 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) {
87 // ignore the section if the LDSection* in input context is NULL
88 if (NULL == *section)
91 switch((*section)->kind()) {
94 assert(NULL != (*section)->getLink());
97 *(*section)->getLink(),
99 (*section)->getInfo());
108 pInput.memArea()->request((*section)->offset(),
109 (*section)->size());
124 assert(NULL != (*section)->getLink());
125 size_t link_index = (*section)->getLink()->index();
130 *section = NULL;
143 if (!m_pELFReader->readRegularSection(pInput, m_Linker, **section))
145 llvm::Twine("can not read regular section `") +
146 (*section)->name() +
152 if (!m_pELFReader->readTargetSection(pInput, m_Linker, **section))
155 (*section)->name() +
162 (*section)->name(),
167 llvm::MCSectionData& sect_data = m_Linker.getOrCreateSectData(**section);
170 new llvm::MCFillFragment(0x0, 1, (*section)->size());
174 (*section)->align());
218 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd();
219 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) {
220 // ignore the section if the LDSection* in input context is NULL
221 if (NULL == *section)
224 if ((*section)->type() == llvm::ELF::SHT_RELA &&
225 (*section)->kind() == LDFileFormat::Relocation) {
226 MemoryRegion* region = mem->request((*section)->offset(), (*section)->size());
227 bool result = m_pELFReader->readRela(pInput, m_Linker, **section, *region);
232 else if ((*section)->type() == llvm::ELF::SHT_REL &&
233 (*section)->kind() == LDFileFormat::Relocation) {
234 MemoryRegion* region = mem->request((*section)->offset(), (*section)->size());
235 bool result = m_pELFReader->readRel(pInput, m_Linker, **section, *region);