Lines Matching refs:section
88 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd(); in readSections() local
89 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) { in readSections()
91 if (NULL == *section) in readSections()
94 switch((*section)->kind()) { in readSections()
97 assert(NULL != (*section)->getLink()); in readSections()
100 *(*section)->getLink(), in readSections()
102 (*section)->getInfo()); in readSections()
109 signatures().insert((*section)->name(), exist); in readSections()
118 pInput.fileOffset() + (*section)->offset(), (*section)->size()); in readSections()
133 assert(NULL != (*section)->getLink()); in readSections()
134 size_t link_index = (*section)->getLink()->index(); in readSections()
139 *section = NULL; in readSections()
151 if (!m_pELFReader->readRegularSection(pInput, m_Linker, **section)) in readSections()
152 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
156 if (!m_pELFReader->readEhFrame(pInput, m_Linker, **section)) in readSections()
157 fatal(diag::err_cannot_read_section) <<(*section)->name(); in readSections()
162 if (!m_pELFReader->readRegularSection(pInput, m_Linker, **section)) in readSections()
163 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections()
168 if (!m_pELFReader->readTargetSection(pInput, m_Linker, **section)) in readSections()
169 fatal(diag::err_cannot_read_target_section) << (*section)->name(); in readSections()
175 (*section)->name(), in readSections()
180 SectionData& sect_data = m_Linker.getOrCreateSectData(**section); in readSections()
182 FillFragment* frag = new FillFragment(0x0, 1, (*section)->size()); in readSections()
186 (*section)->align()); in readSections()
197 warning(diag::warn_illegal_input_section) << (*section)->name() in readSections()
248 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd(); in readRelocations() local
249 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) { in readRelocations()
251 if (NULL == *section) in readRelocations()
254 if ((*section)->type() == llvm::ELF::SHT_RELA && in readRelocations()
255 (*section)->kind() == LDFileFormat::Relocation) { in readRelocations()
257 pInput.fileOffset() + (*section)->offset(), (*section)->size()); in readRelocations()
258 bool result = m_pELFReader->readRela(pInput, m_Linker, **section, in readRelocations()
264 else if ((*section)->type() == llvm::ELF::SHT_REL && in readRelocations()
265 (*section)->kind() == LDFileFormat::Relocation) { in readRelocations()
267 pInput.fileOffset() + (*section)->offset(), (*section)->size()); in readRelocations()
268 bool result = m_pELFReader->readRel(pInput, m_Linker, **section, *region); in readRelocations()