Lines Matching refs:osec

169     for (OutputSection *osec : seg->getSections()) {  in writeTo()
170 if (!isZeroFill(osec->flags)) { in writeTo()
171 assert(osec->fileOff >= seg->fileOff); in writeTo()
173 c->filesize, osec->fileOff + osec->getFileSize() - seg->fileOff); in writeTo()
176 if (osec->isHidden()) in writeTo()
182 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size()); in writeTo()
185 sectHdr->addr = osec->addr; in writeTo()
186 sectHdr->offset = osec->fileOff; in writeTo()
187 sectHdr->align = Log2_32(osec->align); in writeTo()
188 sectHdr->flags = osec->flags; in writeTo()
189 sectHdr->size = osec->getSize(); in writeTo()
190 sectHdr->reserved1 = osec->reserved1; in writeTo()
191 sectHdr->reserved2 = osec->reserved2; in writeTo()
505 static int sectionOrder(OutputSection *osec) { in sectionOrder() argument
506 StringRef segname = osec->parent->name; in sectionOrder()
509 return StringSwitch<int>(osec->name) in sectionOrder()
515 return StringSwitch<int>(osec->name) in sectionOrder()
528 if (isZeroFill(osec->flags)) in sectionOrder()
551 for (auto *osec : seg->getSections()) { in sortSegmentsAndSections() local
554 if (!osec->isHidden()) in sortSegmentsAndSections()
555 osec->index = ++sectionIndex; in sortSegmentsAndSections()
558 if (auto *merged = dyn_cast<MergedOutputSection>(osec)) { in sortSegmentsAndSections()
595 MergedOutputSection *&osec = in createOutputSections() local
597 if (osec == nullptr) in createOutputSections()
598 osec = make<MergedOutputSection>(isec->name); in createOutputSections()
599 osec->mergeInput(isec); in createOutputSections()
604 MergedOutputSection *osec = it.second; in createOutputSections() local
606 assert(osec->name == section_names::compactUnwind); in createOutputSections()
607 unwindInfoSection->setCompactUnwindSection(osec); in createOutputSections()
609 getOrCreateOutputSegment(segname)->addOutputSection(osec); in createOutputSections()
631 for (auto *osec : seg->getSections()) { in assignAddresses() local
632 if (!osec->isNeeded()) in assignAddresses()
634 addr = alignTo(addr, osec->align); in assignAddresses()
635 fileOff = alignTo(fileOff, osec->align); in assignAddresses()
636 osec->addr = addr; in assignAddresses()
637 osec->fileOff = isZeroFill(osec->flags) ? 0 : fileOff; in assignAddresses()
638 osec->finalize(); in assignAddresses()
640 addr += osec->getSize(); in assignAddresses()
641 fileOff += osec->getFileSize(); in assignAddresses()
660 for (OutputSection *osec : seg->getSections()) in writeSections()
661 osec->writeTo(buf + osec->fileOff); in writeSections()