Lines Matching refs:section

92 /// readHeader - read section header and create LDSections.
111 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd();
112 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) {
113 // ignore the section if the LDSection* in input context is NULL
114 if (*section == NULL)
117 switch ((*section)->kind()) {
120 assert((*section)->getLink() != NULL);
122 pInput, *(*section)->getLink(), (*section)->getInfo());
127 // if the signature is a section symbol in input object, we use the
128 // section name as group signature.
129 signatures().insert((*section)->name(), exist);
138 pInput.fileOffset() + (*section)->offset(), (*section)->size());
158 llvm::StringRef((*section)->name()).drop_front(14));
162 (*section)->setKind(LDFileFormat::Debug);
164 (*section)->setKind(LDFileFormat::Ignore);
166 SectionData* sd = IRBuilder::CreateSectionData(**section);
168 fatal(diag::err_cannot_read_section) << (*section)->name();
171 if (((*section)->flag() & llvm::ELF::SHF_EXECINSTR) != 0)
172 (*section)->setKind(LDFileFormat::TEXT);
174 (*section)->setKind(LDFileFormat::DATA);
175 SectionData* sd = IRBuilder::CreateSectionData(**section);
177 fatal(diag::err_cannot_read_section) << (*section)->name();
180 (*section)->setKind(LDFileFormat::Ignore);
186 assert((*section)->getLink() != NULL);
187 size_t link_index = (*section)->getLink()->index();
193 (*section)->setKind(LDFileFormat::Ignore);
207 SectionData* sd = IRBuilder::CreateSectionData(**section);
209 fatal(diag::err_cannot_read_section) << (*section)->name();
215 (*section)->setKind(LDFileFormat::Ignore);
217 SectionData* sd = IRBuilder::CreateSectionData(**section);
219 fatal(diag::err_cannot_read_section) << (*section)->name();
225 EhFrame* eh_frame = IRBuilder::CreateEhFrame(**section);
238 fatal(diag::err_cannot_read_section) << (*section)->name();
245 SectionData* sd = IRBuilder::CreateSectionData(**section);
247 fatal(diag::err_cannot_read_target_section) << (*section)->name();
253 IRBuilder::CreateBSS(**section);
266 << (*section)->name() << pInput.name() << pInput.path();