Home | History | Annotate | Download | only in LD

Lines Matching refs:section

92 /// readHeader - read section header and create LDSections.
110 LDContext::sect_iterator section, sectEnd = pInput.context()->sectEnd();
111 for (section = pInput.context()->sectBegin(); section != sectEnd; ++section) {
112 // ignore the section if the LDSection* in input context is NULL
113 if (*section == NULL)
116 switch ((*section)->kind()) {
119 assert((*section)->getLink() != NULL);
121 pInput, *(*section)->getLink(), (*section)->getInfo());
125 ResolveInfo::Section == signature->type()) {
126 // if the signature is a section symbol in input object, we use the
127 // section name as group signature.
128 signatures().insert((*section)->name(), exist);
137 pInput.fileOffset() + (*section)->offset(), (*section)->size());
157 llvm::StringRef((*section)->name()).drop_front(14));
161 (*section)->setKind(LDFileFormat::Debug);
163 (*section)->setKind(LDFileFormat::Ignore);
165 SectionData* sd = IRBuilder::CreateSectionData(**section);
167 fatal(diag::err_cannot_read_section) << (*section)->name();
170 if (((*section)->flag() & llvm::ELF::SHF_EXECINSTR) != 0)
171 (*section)->setKind(LDFileFormat::TEXT);
173 (*section)->setKind(LDFileFormat::DATA);
174 SectionData* sd = IRBuilder::CreateSectionData(**section);
176 fatal(diag::err_cannot_read_section) << (*section)->name();
179 (*section)->setKind(LDFileFormat::Ignore);
185 assert((*section)->getLink() != NULL);
186 size_t link_index = (*section)->getLink()->index();
192 (*section)->setKind(LDFileFormat::Ignore);
206 SectionData* sd = IRBuilder::CreateSectionData(**section);
208 fatal(diag::err_cannot_read_section) << (*section)->name();
214 (*section)->setKind(LDFileFormat::Ignore);
216 SectionData* sd = IRBuilder::CreateSectionData(**section);
218 fatal(diag::err_cannot_read_section) << (*section)->name();
224 EhFrame* eh_frame = IRBuilder::CreateEhFrame(**section);
237 fatal(diag::err_cannot_read_section) << (*section)->name();
244 SectionData* sd = IRBuilder::CreateSectionData(**section);
246 fatal(diag::err_cannot_read_target_section) << (*section)->name();
252 IRBuilder::CreateBSS(**section);
265 << (*section)->name() << pInput.name() << pInput.path();